rc
This commit is contained in:
@@ -32,6 +32,8 @@ public class Goal : NetworkBehaviour
|
||||
Debug.Log(ball.name);
|
||||
GameManager.instance.OnGoal(team);
|
||||
}else if(collision.gameObject.CompareTag("Puck")){
|
||||
if(GameManager.instance == null || !GameManager.instance.CanProcessGoal)
|
||||
return;
|
||||
Debug.Log("Puck goal", gameObject);
|
||||
Puck puck = collision.gameObject.GetComponent<Puck>();
|
||||
Debug.Log(puck.name);
|
||||
|
||||
Reference in New Issue
Block a user