void Start() { cellsHolder = CellsHolder.GetCellsHolder(); players = new List <Player>(); chips = new List <Chip>(); InitializeField(); mode = GameMode.FigureMoving; }
void Start() { cellsHolder = CellsHolder.GetCellsHolder(); if (Mathf.RoundToInt(transform.rotation.eulerAngles.y) == 180 || Mathf.RoundToInt(transform.rotation.eulerAngles.y) == 0) { isLine = true; number = GameController.ZToI(transform.position.z); direction = -Mathf.RoundToInt(transform.position.x); } else if (Mathf.RoundToInt(transform.rotation.eulerAngles.y) == 90 || Mathf.RoundToInt(transform.rotation.eulerAngles.y) == 270) { isLine = false; number = GameController.XToJ(transform.position.x); direction = -Mathf.RoundToInt(transform.position.z); } }
void Start() { currentCamera = GetComponent <Camera>(); gameController = GameController.GetGameController(); cellsHolder = CellsHolder.GetCellsHolder(); }