C# Class Snake, Fupixel

Inheritance: MonoBehaviour
Show file Open project: JuhaKiili/Fupixel Class Usage Examples

Public Properties

Property Type Description
backgroundColor Color
foodColor Color
inputHandled bool
snakeColor Color
wallColor Color

Public Methods

Method Description
Awake ( ) : void
DrawFood ( ) : void
DrawWalls ( ) : void
Update ( ) : void

Private Methods

Method Description
CheckForGameOver ( ) : void
DrawSnake ( ) : void
HandleInput ( ) : void
HandleSnakeQueue ( ) : void
MoveSnake ( ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

DrawFood() public method

public DrawFood ( ) : void
return void

DrawWalls() public method

public DrawWalls ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

backgroundColor public property

public Color backgroundColor
return Color

foodColor public property

public Color foodColor
return Color

inputHandled public property

public bool inputHandled
return bool

snakeColor public property

public Color snakeColor
return Color

wallColor public property

public Color wallColor
return Color