Example #1
0
 void Awake()
 {
     bodyPartListeners = new List <DamageMonitorListener>(UIManager.Instance.GetComponentsInChildren <DamageMonitorListener>(true));
     oxygenAlert       = GetComponentInChildren <UI_OxygenAlert>(true);
     tempAlert         = GetComponentInChildren <UI_TempAlert>(true);
     pressureAlert     = GetComponentInChildren <UI_PressureAlert>(true);
     oxygenAlert.gameObject.SetActive(false);
     tempAlert.gameObject.SetActive(false);
     pressureAlert.gameObject.SetActive(false);
     oxygenButton = GetComponentInChildren <OxygenButton>(true).gameObject.GetComponent <Button>();
 }