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
Afficher le fichier Open project: Cedric-Paris/PuzzleGameProject Class Usage Examples

Méthodes publiques

Свойство Type Description
camAssociated Camera

Méthodes publiques

Méthode 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

Méthode Description
CalculDemiLePlusProche ( float value ) : float

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

Method Details

Start() public méthode

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
Résultat void

Update() public méthode

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

Property Details

camAssociated public_oe property

Camera associated to the Grid.
public Camera camAssociated
Résultat Camera