Ejemplo n.º 1
0
        private void Process(BaseClickInfo arg0)
        {
            switch (Stering)
            {
            case CommadStering.Player:
                _playerCommand = new Command(arg0.WorldPosition, Vector3.zero, arg0.GameObject);
                break;

            case CommadStering.Skill:
                _skillCommad = new Command(arg0.WorldPosition, Vector3.zero, arg0.GameObject);
                break;
            }
        }
Ejemplo n.º 2
0
        public void Move(BaseClickInfo clickInfo)
        {
            var playerPosition = PlayerCharacter.Instance.transform.position;

            transform.position = new Vector3(clickInfo.WorldPosition.x, playerPosition.y, 0);
            _renderer.enabled  = true;

            if (_turnOffCorutine != null)
            {
                StopCoroutine(_turnOffCorutine);
            }
            _turnOffCorutine = StartCoroutine(TurnOff());
        }