Beispiel #1
0
 void set()
 {
     if (SceneManager.GetActiveScene().name != "Tutorial")
     {
         proc      = FindObjectOfType <Procedural>();
         templates = GameObject.FindGameObjectWithTag("Rooms").GetComponent <RoomTemplates>();
         for (int i = 0; i < objects.Length; i++)
         {
             for (int j = 0; j < counts[i]; j++)
             {
                 float delay = proc.getCount();
                 StartCoroutine(SetRoom(templates.firstDelay + delay, i));
             }
         }
     }
 }
Beispiel #2
0
    void set()
    {
        proc      = FindObjectOfType <Procedural>();
        templates = GameObject.FindGameObjectWithTag("Rooms").GetComponent <RoomTemplates>();
        isBig     = PercentReturn(templates.BigRoomPercent);

        float delay = proc.getCount();

        if (isBig)
        {
            Invoke("checkBig", templates.delay + delay);
            Invoke("SetRoom", templates.delay + delay);
        }
        else
        {
            Invoke("SetRoom", templates.delay + delay);
        }
    }