C# Класс EditorGrid, PuzzleGameProject

Maintains the editor grid has a correct position to keep the grid aligned with the square and elements on game.
Наследование: MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
camAssociated Camera

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
CalculDemiLePlusProche ( float value ) : float

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

Описание методов

Start() публичный Метод

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
Результат void

Update() публичный Метод

Called every frame, if the MonoBehaviour is enabled. Replace the grid if the associated camera has moved.
public Update ( ) : void
Результат void

Описание свойств

camAssociated публичное свойство

Camera associated to the Grid.
public Camera camAssociated
Результат Camera