コード例 #1
0
        protected override void OnAddedToParent()
        {
            if (EngineApp.ApplicationType == EngineApp.ApplicationTypeEnum.Simulation)
            {
                instance = this;
            }

            base.OnAddedToParent();
        }
コード例 #2
0
        protected override void OnRemovedFromParent(NeoAxis.Component oldParent)
        {
            DestroyLoadedObject();

            base.OnRemovedFromParent(oldParent);

            if (instance == this)
            {
                instance = null;
            }
        }
コード例 #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();
        }