protected override void OnAddedToParent() { if (EngineApp.ApplicationType == EngineApp.ApplicationTypeEnum.Simulation) { instance = this; } base.OnAddedToParent(); }
protected override void OnRemovedFromParent(NeoAxis.Component oldParent) { DestroyLoadedObject(); base.OnRemovedFromParent(oldParent); if (instance == this) { instance = null; } }
protected override void OnAddedToParent() { if (EngineApp.ApplicationType == EngineApp.ApplicationTypeEnum.Simulation) { instance = this; if (!SystemSettings.MobileDevice) { var button = GetComponent("Button Menu"); if (button != null) { button.Enabled = false; } } } base.OnAddedToParent(); }