예제 #1
0
        protected override void Start()
        {
            base.Start();
            _gravity = GetComponentInChildren<CharacterGravity>();

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

            Character.OnGrounded += delegate {
                if (Character.IsGrounded)
                {
                    JumpCount = 0;
                }
            };
            Restrictions += delegate {
                return(JumpCount < MaxJumpCount);
            };
        }