protected override void Start() { base.Start(); _gravity = GetComponentInChildren<CharacterGravity>(); Character.OnGrounded += delegate { if (Character.IsGrounded) JumpCount = 0; }; Restrictions += delegate { return JumpCount < MaxJumpCount; }; }
protected override void Start() { base.Start(); _gravity = GetComponentInChildren <CharacterGravity>(); Character.OnGrounded += delegate { if (Character.IsGrounded) { JumpCount = 0; } }; Restrictions += delegate { return(JumpCount < MaxJumpCount); }; }