Exemplo n.º 1
0
 void onGameReset(Events.IResetGameState obj)
 {
     if (obj.lastScoreWasHighScore)
     {
         StartCoroutine(startBGM());
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Resets the ball called when game is reset
 /// </summary>
 /// <param name="obj"></param>
 void ResetBall(Events.IResetGameState obj)
 {
     transform.position   = Vector3.zero;
     rigidbody2D.velocity = Vector2.zero;
     frozen = true;
     SetConstraints();
     //StartCoroutine(ballFreeze(0.5f, 0.0f));
 }
Exemplo n.º 3
0
 void OnBallReset(Events.IResetGameState obj)
 {
     frozen = true;
 }