void OnDisable() { PilotStatsGUI g = gameObject.GetComponent <PilotStatsGUI>(); if (g != null) { g.ShowPilotLevel = true; } }
void OnEnable() { mTransition.Start(); PilotStatsGUI g = gameObject.GetComponent <PilotStatsGUI>(); if (g != null) { g.ShowPilotLevel = false; } }