Beispiel #1
0
    private void OnChargeStart()
    {
        chargeTimer = ChargeTime;
        int angle = MyUtility.GetAxisOrientedAngle(player.transform.position - transform.position);

        attackHitbox.transform.localEulerAngles = Vector3.forward * (angle + 90);
        Weapon.transform.localEulerAngles       = Vector3.forward * (angle + 90);
    }
    override protected void ControllerUpdate()
    {
        int angle = MyUtility.GetAxisOrientedAngle(movement.direction);

        DialogHitbox.transform.localEulerAngles = Vector3.forward * angle;
        Weapon.transform.localEulerAngles       = Vector3.forward * angle;
        if (Input.GetKeyDown(KeyCode.Space))
        {
            CurTestFunction();
        }
    }