internal virtual void UpdateOverride() { if (Immunity.IsImmune) { Immunity.DoYourThing(); } }
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(); }