C# Class HanoiTowers.Disk

Inheritance: UnityEngine.MonoBehaviour
Exibir arquivo Open project: BrainProject/UnityTemp Class Usage Examples

Public Properties

Property Type Description
gameController GameController
size int

Public Methods

Method Description
Awake ( ) : void
OnMouseEnter ( ) : void
OnMouseExit ( ) : void
OnMouseUp ( ) : void
Start ( ) : void
Update ( ) : void
getState ( ) : diskState
moveToColumn ( Column target, bool animate ) : void
setColumn ( Column newColumn ) : void

Private Methods

Method Description
animateDiskUp ( ) : void
isMovable ( ) : bool

returns true if disk can be lifted right now (it is top disk on column)

updatePosition ( float fallHeight ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

OnMouseEnter() public method

public OnMouseEnter ( ) : void
return void

OnMouseExit() public method

public OnMouseExit ( ) : void
return void

OnMouseUp() public method

public OnMouseUp ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

getState() public method

public getState ( ) : diskState
return diskState

moveToColumn() public method

public moveToColumn ( Column target, bool animate ) : void
target Column
animate bool
return void

setColumn() public method

public setColumn ( Column newColumn ) : void
newColumn Column
return void

Property Details

gameController public_oe property

public GameController,HanoiTowers gameController
return GameController

size public_oe property

public int size
return int