SetEmulationMode() static private method

static private SetEmulationMode ( EmulationMode mode ) : void
mode EmulationMode
return void
Beispiel #1
0
        private void OnPlayModeChanged()
        {
            bool inPlayMode = this.m_InPlayMode;

            this.m_InPlayMode = EditorApplication.isPlayingOrWillChangePlaymode;
            if (this.m_InPlayMode && !inPlayMode)
            {
                PerceptionSimulation.SetEmulationMode(this.m_Mode);
                switch (this.m_Mode)
                {
                case EmulationMode.Simulated:
                    this.InitializeSimulation();
                    break;
                }
            }
            else if (!this.m_InPlayMode && inPlayMode)
            {
                switch (this.m_Mode)
                {
                case EmulationMode.Simulated:
                    PerceptionSimulation.Shutdown();
                    break;
                }
            }
        }
        private void OnPlayModeChanged()
        {
            bool inPlayMode = this.m_InPlayMode;

            this.m_InPlayMode = EditorApplication.isPlayingOrWillChangePlaymode;
            if (this.m_InPlayMode && !inPlayMode)
            {
                PerceptionSimulation.SetEmulationMode(this.m_Mode);
                EmulationMode mode = this.m_Mode;
                if (mode != EmulationMode.Simulated)
                {
                    if (mode != EmulationMode.RemoteDevice)
                    {
                    }
                }
                else
                {
                    this.InitializeSimulation();
                }
            }
            else if (!this.m_InPlayMode && inPlayMode)
            {
                EmulationMode mode2 = this.m_Mode;
                if (mode2 != EmulationMode.Simulated)
                {
                    if (mode2 != EmulationMode.RemoteDevice)
                    {
                    }
                }
                else
                {
                    PerceptionSimulation.Shutdown();
                }
            }
        }