public void OnApplicationQuit() { if (gate != null) { gate.ExitGate(); } gate = null; }
public void ChangeGate(UGate g) { if (gate != null) { gate.ExitGate(); } gate = null; next = g; }
void Update() { if (next != null) { gate = next; gate.JoinGate(); next = null; } if (gate == null) { return; } gate.Tick(); #if UNITY_EDITOR if (gate != null) { GateName = gate.GetType().Name; } #endif }