Ejemplo 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> ();
 }
Ejemplo n.º 2
0
 //-------------------------------------------------------------------
 void Start()
 {
     tinker = GameObject.Find("tinker").GetComponent<tinker>();
     gravityBeam = GameObject.Find("gravityBeam").GetComponent<gravityBeam>();
     shipAnim = this.GetComponent<shipAnimation>();
 }