コード例 #1
0
 void Start()
 {
     cellsHolder = CellsHolder.GetCellsHolder();
     players     = new List <Player>();
     chips       = new List <Chip>();
     InitializeField();
     mode = GameMode.FigureMoving;
 }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
 void Start()
 {
     currentCamera  = GetComponent <Camera>();
     gameController = GameController.GetGameController();
     cellsHolder    = CellsHolder.GetCellsHolder();
 }