Esempio n. 1
0
 /// <summary>
 /// Awake is called when the script instance is being loaded.
 /// </summary>
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(gameObject);
     }
 }
 void Start()
 {
     ambientSoundController = GameObject.FindWithTag("AmbientSoundController").GetComponent <AmbientSoundController>();
 }