Ejemplo n.º 1
0
        /// <summary>
        /// On awake we prepare our prompt listener
        /// </summary>
        protected virtual void Awake()
        {
            MMDebug.MMDebugLogEvent.Register(OnMMDebugLogEvent);
            DebugText.text = "";
            _rectTransform = this.gameObject.GetComponent <RectTransform>();

            CommandPrompt.onEndEdit.AddListener(val =>
            {
                CommandPrompt.text = "";
                if (val != "")
                {
                    MMDebug.DebugLogCommand(val);
                }
            });
        }