C# 클래스 TileScript, Imagine_diamond-miner

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

공개 메소드들

메소드 설명
Explode ( float delay ) : bool

Explodes the tile after a delay.

Initialize ( int diamonds, int xCoord, int yCoord, LevelScript, inLevel ) : void

Initializes the tile with new data.

OnRecycle ( ) : void

Called when the tile is about to be returned to the object pool.

PlayAnimation ( ) : void

Plays the hint animation on this tile.

비공개 메소드들

메소드 설명
DoExplode ( ) : void

Explodes the tile, spawning effects as necessary.

GetGrassChild ( ) : GameObject

Gets the child grass covering for this tile, if it exists.

OnClicked ( ) : void

Called when the player clicks on this tile.

SpawnExplosion ( ) : void

Spawn an overhead explosion animation.

Start ( ) : void
Update ( ) : void

메소드 상세

Explode() 공개 메소드

Explodes the tile after a delay.
public Explode ( float delay ) : bool
delay float The delay before exploding, in seconds.
리턴 bool

Initialize() 공개 메소드

Initializes the tile with new data.
public Initialize ( int diamonds, int xCoord, int yCoord, LevelScript, inLevel ) : void
diamonds int Number of diamonds in the tile.
xCoord int x-position in the grid for the tile.
yCoord int y-position in the grid for the tile.
inLevel LevelScript, Reference to the level the tile is in.
리턴 void

OnRecycle() 공개 메소드

Called when the tile is about to be returned to the object pool.
public OnRecycle ( ) : void
리턴 void

PlayAnimation() 공개 메소드

Plays the hint animation on this tile.
public PlayAnimation ( ) : void
리턴 void