Пример #1
0
 // Use this for initialization
 void Start()
 {
     hexChartScript = GameObject.Find("HexGrid").GetComponent<HexChart>();
     directions = new string[6] { "topLeft", "topRight", "left", "right", "bottomLeft", "bottomRight" };
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     m_Timer = 0;
     m_LookRight = transform.rotation;
     m_LookLeft = m_LookRight * Quaternion.Euler(0, 180, 0);
     animationTimeLeft =  Random.Range(0F, 5F);
     Grid = GameObject.Find("HexGrid");
     hexChartScript = Grid.GetComponent<HexChart> ();
     currentlyMoving = false;
     iTween.Defaults.easeType = iTween.EaseType.easeOutBounce;
     catsHaveMet = false;
     touchMoved = false;
     chosen = false;
     wonLevel = false;
     notSavedYet = true;
     justMoved = false;
     playingWinSound = false;
     winConditionSatisfied = false;
     Grid.GetComponent<stepstarcounter>().updateMovesLeftText();
 }