Esempio n. 1
0
 private void Start()
 {
     bikeRig = GetComponentInChildren <rigAllocateThisplayerPairSettingsToBars>();
     bikeRig.setupTheRigVoltBars();
     backgroundSoundScript = GetComponentInChildren <backgroundSound>();
     backgroundSoundScript.playEventSetupSpound();
     //OpenMyArduinoStream();
 }
Esempio n. 2
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 Awake()
 {
     if (_instance == null)
     {
         //If I am the first instance, make me the Singleton
         _instance = this;
         DontDestroyOnLoad(this);
     }
     else
     {
         //If a Singleton already exists and you find
         //another reference in scene, destroy it!
         if (this != _instance)
         {
             Destroy(this.gameObject);
         }
     }
 }