OnReachedExit() public method

Called when this player reaches the level's exit.
public OnReachedExit ( ) : void
return void
Ejemplo n.º 1
0
 /// <summary>
 /// Called when the player reaches the level's exit.
 /// </summary>
 private void OnExitReached()
 {
     Player.OnReachedExit();
     exitReachedSound.Play();
     if (gems.Count == 0)
     {
         reachedExit = true;
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Called when the player reaches the level's exit.
 /// </summary>
 private void OnExitReached(int playerIndex)
 {
     Player.OnReachedExit(playerIndex);
     if (playerIndex == 0)
     {
         exitReachedSound.Play();
         reachedExit = true;
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Called when the player reaches the level's exit.
 /// </summary>
 private void OnExitReached()
 {
     Player.OnReachedExit();
     exitReachedSound.Play();
     reachedExit = true;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Called when the player reaches the level's exit.
 /// </summary>
 private void OnExitReached()
 {
     Player.OnReachedExit();
     reachedExit = true;
 }