C# Class EditorGrid, PuzzleGameProject

Maintains the editor grid has a correct position to keep the grid aligned with the square and elements on game.
Inheritance: MonoBehaviour
Mostra file Open project: Cedric-Paris/PuzzleGameProject Class Usage Examples

Public Properties

Property Type Description
camAssociated Camera

Public Methods

Method Description
Start ( ) : void

Processing performed by Unity when an instance is created. Control if a camera is associated, if it is not the case, it use the main camera.

Update ( ) : void

Called every frame, if the MonoBehaviour is enabled. Replace the grid if the associated camera has moved.

Private Methods

Method Description
CalculDemiLePlusProche ( float value ) : float

Calculate the number in .5 nearest to the value passed as argument.

Method Details

Start() public method

Processing performed by Unity when an instance is created. Control if a camera is associated, if it is not the case, it use the main camera.
public Start ( ) : void
return void

Update() public method

Called every frame, if the MonoBehaviour is enabled. Replace the grid if the associated camera has moved.
public Update ( ) : void
return void

Property Details

camAssociated public_oe property

Camera associated to the Grid.
public Camera camAssociated
return Camera