public void Start() { if (Instance != null) { ProbeControlRoomUtils.Logger.debug ("[ProbeControlRoom][ProbeControlRoomUI] Start() - InstanceKill"); Destroy (this); return; } Instance = this; if(!initStylesDone) InitStyles(); GameEvents.onHideUI.Add(onHideUI); GameEvents.onShowUI.Add(onShowUI); ProbeControlRoomUtils.Logger.debug ("[ProbeControlRoom][ProbeControlRoomUI] OnStart()"); }
public void Start() { if (Instance != null) { ProbeControlRoomUtils.Logger.debug("[ProbeControlRoom][ProbeControlRoomUI] Start() - InstanceKill"); Destroy(this); return; } Instance = this; if (!initStylesDone) { InitStyles(); } GameEvents.onHideUI.Add(onHideUI); GameEvents.onShowUI.Add(onShowUI); ProbeControlRoomUtils.Logger.debug("[ProbeControlRoom][ProbeControlRoomUI] OnStart()"); }