Пример #1
0
 void Start()
 {
     objectsManager.AddOjbToList(this.gameObject);
     if (mode.DarkMatterModeBool == true)
     {
         this.gameObject.transform.GetChild(0).gameObject.SetActive(false);
         this.gameObject.transform.GetChild(1).gameObject.SetActive(true);
     }
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     if (mode != null && objectsManager != null)
     {
         objectsManager.AddOjbToList(this.gameObject);
     }
     if (objectsManager != null)
     {
         this.gameObject.GetComponent <Attractor>().objectsManager = objectsManager;
     }
     //Debug.LogError(this.gameObject.GetComponent<Attractor>());
     audioManager = (AudioManager)FindObjectOfType(typeof(AudioManager));
     if (mode != null && mode.DarkMatterModeBool == true)
     {
         this.gameObject.transform.GetChild(0).gameObject.SetActive(false);
         this.gameObject.transform.GetChild(1).gameObject.SetActive(true);
     }
 }