Example #1
0
 void Awake() // стандартная функция Unity, запускается 1 раз в самом начале
 {
     main = this;
     combinations.Sort((Combinations a, Combinations b) => {
         if (a.priority < b.priority)
         {
             return(-1);
         }
         if (a.priority > b.priority)
         {
             return(1);
         }
         return(0);
     });
 }
Example #2
0
    IEnumerator StartLevelRoutine()
    {
        UIAssistant.main.ShowPage("Loading");

        while (CPanel.uiAnimation > 0)
        {
            yield return(0);
        }

        MatchThree.main.enabled = false;
        yield return(0);

        MatchThree.Reset();

        yield return(StartCoroutine(CreateField()));

        MatchThree.main.enabled = true;
        MatchThree.main.eventCount++;

        MatchThree.main.StartSession();

        GameCamera.main.transform.position = new Vector3(0, 20, -10);
    }