public void AttackMelee_Execute() { _behaviour = GetComponent <GateKeeperClass>(); _pos = this.transform.position; _dir = _behaviour.myDirection; _pos += _dir * 0.16f; this.transform.position = _pos; //throw new System.NotImplementedException(); }
public void AttackSkill1_Execute() { _behaviour = GetComponent <GateKeeperClass>(); _pos = this.transform.position; _dir = _behaviour.myDirection; _wallPoint = GameGeneralManager.instance.IsWallInFrontOfCharacter(_pos, _dir, 4.18f); if (_wallPoint != Vector2.zero) { float magnitude = (_wallPoint - _pos).magnitude; _pos += _dir * magnitude; } else { _pos += _dir * 4.18f; } this.transform.position = _pos; //throw new System.NotImplementedException(); }