Пример #1
0
 internal virtual void UpdateOverride()
 {
     if (Immunity.IsImmune)
     {
         Immunity.DoYourThing();
     }
 }
Пример #2
0
    private void Update()
    {
        immunity.DoYourThing();
        MovementInput = new Vector2(Input.GetAxisRaw("Horizontal"), Input.GetAxisRaw("Vertical"));
        JumpKeyIsDown = Input.GetKey(KeyCode.Space);
        JumpKeyIsUp   = Input.GetKeyUp(KeyCode.Space);

        if (movement.collisions.below)
        {
            jumpTimeCounter = jumpTime;
            canJump         = true;
        }

        Attack();
        Crouch();
    }