void OnBallReset() { if (wonGoal) { OnGoalWon.Invoke(); } else { OnGoalLost.Invoke(); } //Resets the game GoalCollisionBehavior.ResetCollision(); wonGoal = false; }
void OnBallReset() { if (wonGoal) { OnGoalWon.Invoke(); } else { OnGoalLost.Invoke(); } // Oyun yeniden baslatılır. GoalCollisionBehavior.ResetCollision(); wonGoal = false; }