コード例 #1
0
    public void Attack(float multiplier, bool isPerfect)
    {
        var target = Cameraer.Instance.GetTargetPosition();

        transform.LookAt(new Vector3(target.x, transform.position.y, target.z));
        var args = new AttackArgs()
        {
            Position   = transform.position,
            Rotation   = transform.rotation,
            Multiplier = multiplier,
            IsPerfect  = isPerfect
        };

        Attacks.Execute(AttackType, args, false);
        Attacked?.Invoke(this, new AttackedArgs(AttackType, args));
    }
コード例 #2
0
 public bool Execute()
 {
     return(Attacks.Execute(Type, Args, true));
 }