Пример #1
0
        public void CmdGameObject(string cmd)
        {
            IGameObjectCmd goCmd = IOC.Resolve <IGameObjectCmd>();

            if (goCmd != null)
            {
                goCmd.Exec(cmd);
            }
        }
Пример #2
0
        public bool CmdGameObjectValidate(string cmd)
        {
            IGameObjectCmd goCmd = IOC.Resolve <IGameObjectCmd>();

            if (goCmd != null)
            {
                return(goCmd.CanExec(cmd));
            }
            return(false);
        }
Пример #3
0
        protected virtual void AwakeOverride()
        {
            m_rte = RTE;
            IOC.Register <IRTE>(m_rte);
            IOC.Register(m_rte);

            m_resourcePreview         = ResourcePreview;
            m_rteAppearance           = RTEAppearance;
            m_windowManager           = WindowManager;
            m_console                 = RuntimeConsole;
            m_gameObjectCmd           = GameObjectCmd;
            m_editCmd                 = EditCmd;
            m_contextMenu             = ContextMenu;
            m_runtimeHandlesComponent = RuntimeHandlesComponent;
            m_editorsMap              = EditorsMap;
        }
Пример #4
0
        private void OnDestroy()
        {
            if (m_instance == this)
            {
                m_instance = null;
            }

            OnDestroyOverride();

            IOC.Unregister <IRTE>(m_rte);
            IOC.Unregister(m_rte);

            m_resourcePreview         = null;
            m_rteAppearance           = null;
            m_windowManager           = null;
            m_console                 = null;
            m_gameObjectCmd           = null;
            m_editCmd                 = null;
            m_contextMenu             = null;
            m_runtimeHandlesComponent = null;
            m_editorsMap              = null;
        }