C# 클래스 GameplayManager, Imagine_diamond-miner

상속: NetworkBehaviour
파일 보기 프로젝트 열기: Microsoft/Imagine_diamond-miner 1 사용 예제들

공개 메소드들

메소드 설명
AddDiamondsToScore ( int diamonds ) : void

This is called when diamonds have been collected by clicking on a tile with diamonds.

CanUpdateGame ( ) : bool

Determines whether the player can launch to start gameplay.

FinishLevel ( ) : void

This is called when the level has been finished in one way or another.

IncrementScore ( ) : void

This increments the score by 1.

OnHintPressed ( ) : void

Called when the hint button is pressed. This button has a cooldown where it will not do anything, to prevent multiple presses.

OnLanguageChanged ( ) : void

This is called from the LanguageMenu when languages are changed.

OnLevelCompleted ( ) : void

Logic that runs when the level tells us it has been completed.

OnLevelFailed ( ) : void

Logic that runs when we have failed a level.

OnNextLevel ( ) : void

Logic that runs when we are requested to move to the next level.

OnRestart ( ) : void

Raises the restart event.

OnRetryLevel ( ) : void

Logic that runs when we are requested to restart the current level.

OnRetryPressed ( ) : void

Called when the retry button is pressed.

OnStartGame ( ) : void

Logic that runs when we are requested to start gameplay.

RemoveDiamonds ( int diamonds ) : void

This is called when a tile with diamonds explodes without being collected.

UseDig ( ) : void

This is called when the player digs up a tile.

비공개 메소드들

메소드 설명
Awake ( ) : void

Awake this instance.

CompleteLevel ( ) : void

Shows a game completion or level completion screen, depending on which level the player just completed.

FailLevel ( ) : void

Shows the Game Over screen.

Start ( ) : void

Called when this behaviour gets initialized. See Unity docs for more information.

StartGame ( ) : void

Sets our game state to in-game so the player can start interacting with the level.

Update ( ) : void

Called once per frame. See Unity docs for more information.

메소드 상세

AddDiamondsToScore() 공개 메소드

This is called when diamonds have been collected by clicking on a tile with diamonds.
public AddDiamondsToScore ( int diamonds ) : void
diamonds int
리턴 void

CanUpdateGame() 공개 메소드

Determines whether the player can launch to start gameplay.
public CanUpdateGame ( ) : bool
리턴 bool

FinishLevel() 공개 메소드

This is called when the level has been finished in one way or another.
public FinishLevel ( ) : void
리턴 void

IncrementScore() 공개 메소드

This increments the score by 1.
public IncrementScore ( ) : void
리턴 void

OnHintPressed() 공개 메소드

Called when the hint button is pressed. This button has a cooldown where it will not do anything, to prevent multiple presses.
public OnHintPressed ( ) : void
리턴 void

OnLanguageChanged() 공개 메소드

This is called from the LanguageMenu when languages are changed.
public OnLanguageChanged ( ) : void
리턴 void

OnLevelCompleted() 공개 메소드

Logic that runs when the level tells us it has been completed.
public OnLevelCompleted ( ) : void
리턴 void

OnLevelFailed() 공개 메소드

Logic that runs when we have failed a level.
public OnLevelFailed ( ) : void
리턴 void

OnNextLevel() 공개 메소드

Logic that runs when we are requested to move to the next level.
public OnNextLevel ( ) : void
리턴 void

OnRestart() 공개 메소드

Raises the restart event.
public OnRestart ( ) : void
리턴 void

OnRetryLevel() 공개 메소드

Logic that runs when we are requested to restart the current level.
public OnRetryLevel ( ) : void
리턴 void

OnRetryPressed() 공개 메소드

Called when the retry button is pressed.
public OnRetryPressed ( ) : void
리턴 void

OnStartGame() 공개 메소드

Logic that runs when we are requested to start gameplay.
public OnStartGame ( ) : void
리턴 void

RemoveDiamonds() 공개 메소드

This is called when a tile with diamonds explodes without being collected.
public RemoveDiamonds ( int diamonds ) : void
diamonds int
리턴 void

UseDig() 공개 메소드

This is called when the player digs up a tile.
public UseDig ( ) : void
리턴 void