Exemplo n.º 1
0
        private static void Menu_KillImmediate(MenuCommand command)
        {
            if (!Application.isPlaying)
            {
                return;
            }

            KillableObject component = command.context as KillableObject;

            if (component == null)
            {
                return;
            }

                        #if DebugStates
            Debug.Log("<color=orange>Menu requested KILL IMMEDIATE</color>");
                        #endif

            component.RequestKillImmediate();
        }