Exemplo n.º 1
0
 void Start()
 {
     sprenderer = GetComponent<SpriteRenderer>();
     Object[] objects = FindObjectsOfType(typeof(GameObject));
     foreach (GameObject go in objects)
     {
         if (go.name == GlobalStatics.audioManager)
         {
             AudioManager = go.GetComponent<Managers.AudioManager>();
         }
     }
     if (AudioManager.FSXIsMuted)
     {
         sprenderer.sprite = faces[1];
     }
 }