Ejemplo n.º 1
0
    //This method gets the reference to the various components if they don't already exist
    void InitializeReferences()
    {
        if (enemySpawner == null)
        {
            enemySpawner = GetComponent <GM_SpawnModule> ();
        }

        if (hands == null)
        {
            hands = GetComponent <GM_HandModule> ();
        }

        if (postEffects == null)
        {
            postEffects = GetComponent <GM_PostEffectModule> ();
        }
    }
Ejemplo n.º 2
0
 void InitializeStacks()
 {
     Debug.Log("Inisializing Stacks of Fish");
     if (customerSpawner == null)
     {
         customerSpawner = GetComponent <GM_SpawnModule>();
     }
     if (dancerSpawner == null)
     {
         dancerSpawner = GetComponent <GM_DanceModule>();
     }
     if (landlordSpawner == null)
     {
         landlordSpawner = GetComponent <GM_LandlordModule>();
     }
     if (cookingManager == null)
     {
         cookingManager = GetComponent <GM_CookingModule>();
     }
     if (trashManager == null)
     {
         trashManager = GetComponent <GM_Trash>();
     }
 }