feedback addressed
This commit is contained in:
@@ -6,7 +6,7 @@ public class Goal : MonoBehaviour
|
||||
void OnTriggerEnter2D(Collider2D collision)
|
||||
{
|
||||
if(collision.gameObject.CompareTag("Player")){
|
||||
Debug.Log("GOAL!");
|
||||
Debug.Log($"GOAL! {team.ToString()}", gameObject);
|
||||
Ball ball = collision.gameObject.GetComponent<Ball>();
|
||||
Debug.Log(ball.name);
|
||||
GameManager.instance.OnGoal(team);
|
||||
|
||||
Reference in New Issue
Block a user