Esempio n. 1
0
 //-------------------------------------------------------------------
 void Start()
 {
     planets = GameObject.FindGameObjectsWithTag("Planet");
     animationCtrl = this.GetComponent<gravityBeamAnimation>();
     tinker = GameObject.Find("tinker").GetComponent<tinker>();
     shipAnim = GameObject.Find("ship").GetComponent<shipAnimation>();
     backgroundAudio = GameObject.Find("setup").GetComponent<backgroundSound>();
     planetAudio = GameObject.Find("planets").GetComponent<planetSound>();
     phoneAppAnim = GameObject.Find("phone_app").GetComponent<Animator>();
     glowAnim = GameObject.Find ("phone_glow").GetComponent<Animator> ();
 }
 void Start()
 {
     tinker = GameObject.Find("tinker").GetComponent<tinker>();
     phoneMessaging = GameObject.Find("messages").GetComponent<phoneMessages>();
     scoring = GameObject.Find("setup").GetComponent<scoring>();
     sound = GameObject.Find("planets").GetComponent<planetSound>();
     anim = GetComponent<planetAnimation>();
     planetInit = GetComponent<planetInit>();
     allPlanets = GameObject.FindGameObjectsWithTag("Planet");
 }