/**
  * Handles play tasks in the game.
  */
 void Play()
 {
     if (player.activeSelf)
     {
         controller.UpdatePlayer(currState);
     }
 }
Example #2
0
    public void UpdatePlayer(Transform player)
    {
        UpdateTransform(this.player, player);
        PerfectController controller = player.GetComponent <PerfectController> ();

        controller.UpdatePlayer(EventHandler.GameState.PAUSE);
        player.GetComponent <Rigidbody> ().useGravity = true;
    }