Пример #1
0
        protected void Awake()
        {
            _messageConsole = GetComponentInChildren <MessageConsole> (true);

            Unit.UnitSelected += HandleUnitSelected;
            Unit.UnitDied     += HandleUnitDied;
        }
Пример #2
0
        public void SetItem(string text, float time, MessageConsole messageConsole)
        {
            gameObject.SetActive(false);
            if (_text == null)
            {
                _text = gameObject.GetOrAddComponent <Text>();
            }

            _text.text           = text;
            _time                = time;
            this._messageConsole = messageConsole;
        }