Esempio n. 1
0
        public CmConfigCommand()
        {
            if (Instance == null)
            {
                Instance = FindObjectOfType(typeof(CmConfigCommand)) as CmConfigCommand;

                if (Instance == null)
                {
                    GameObject cmconfig_command = new GameObject().AddComponent <CmConfigCommand>().gameObject;
                    cmconfig_command.name = "CmConfig";
                    Instance = cmconfig_command.GetComponent <CmConfigCommand>();
                }
            }
            else
            {
                Instance.Awake();
            }
        }
Esempio n. 2
0
 public void Awake()
 {
     Instance = this;
     DevConsole.RegisterConsoleCommand(this, "cmconfig", false, false);
     SNLogger.Log("CheatManager", "Information: Enter 'cmconfig' command for configuration window.");
 }