Ejemplo n.º 1
0
        protected override void OnAddedToParent()
        {
            if (EngineApp.ApplicationType == EngineApp.ApplicationTypeEnum.Simulation)
            {
                instance = this;
            }

            base.OnAddedToParent();
        }
Ejemplo n.º 2
0
        protected override void OnRemovedFromParent(NeoAxis.Component oldParent)
        {
            DestroyLoadedObject();

            base.OnRemovedFromParent(oldParent);

            if (instance == this)
            {
                instance = null;
            }
        }
Ejemplo n.º 3
0
        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();
        }