Esempio n. 1
0
 void cleanup()
 {
     GameObject.FindGameObjectWithTag("temakibackground").GetComponent <Renderer>().enabled = false;
     foreach (Transform child in transform)
     {
         child.gameObject.GetComponent <Collider>().enabled = false;
         child.gameObject.GetComponent <Renderer>().enabled = false;
         //move back to initial position
         if (child.gameObject != GameObject.FindGameObjectWithTag("prepboard"))
         {
             child.position = child.gameObject.GetComponent <NoriRiceFish>().initialPosition;
         }
     }
     menu.buildMenu();
 }
Esempio n. 2
0
 void cleanup()
 {
     //hide arrows and other objects, rebuild menu
     foreach (GameObject arrow in arrows)
     {
         arrow.GetComponent <Renderer>().enabled = false;
         foreach (Transform child in arrow.transform)
         {
             child.gameObject.GetComponent <Collider>().enabled = false;
         }
         //arrow.GetComponent<Collider>().enabled = false;
         arrow.GetComponent <Arrow>().beaten  = false;
         arrow.GetComponent <Arrow>().clicked = false;
     }
     menu.buildMenu();
 }