Example #1
0
 public override void InitAbility(AbilityController controller)
 {
     base.InitAbility(controller);
     deltaTimer             = GetResource.DeltaTimer();
     movementController     = controller.GetComponent <PlayerMovementController>();
     isPressingMovementKeys = Resources.Load("Player/Movement/Player - Is Pressing Movement Keys") as ScriptableBool;
     hitboxController       = controller.GetComponent <PlayerController>().hitboxController;
     animController         = controller.GetComponent <PlayerAnimationController>();
     movementInput          = Resources.Load("Player/Movement/Movement Inputs") as PlayerMovementInputs;
     isInAction             = Resources.Load("Player/Actions/Is Player In Action") as ScriptableBool;
 }
Example #2
0
        public Keys GetMovementKey(PlayerMovementInputs action)
        {
            switch (action)
            {
            case PlayerMovementInputs.Up:
                return(Up);

            case PlayerMovementInputs.Down:
                return(Down);
            }
            return(Keys.None);
        }