Exemple #1
0
        public void CmdEdit(string cmd)
        {
            IEditCmd editCmd = IOC.Resolve <IEditCmd>();

            if (editCmd != null)
            {
                editCmd.Exec(cmd);
            }
        }
Exemple #2
0
        public bool CmdEditValidate(string cmd)
        {
            IEditCmd editCmd = IOC.Resolve <IEditCmd>();

            if (editCmd != null)
            {
                return(editCmd.CanExec(cmd));
            }
            return(false);
        }
Exemple #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;
        }
Exemple #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;
        }