Inheritance: BaseAbility
        public ThinkInputGuided(float speed = .125f)
        {
            Speed = speed;

            _jump = new JumpAbility();
            _swing = new SwingHitAbility(700, 1);
            _interact = new InteractAbility();

            // Subscribe to Input events
            _input = InputManager.Instance;
            _input.KUsePotion.Pressed += new EventHandler(OnUsePotion);
            _input.KHit.Pressed += new EventHandler(OnExecuteHit);
            _input.KInteract.Pressed += new EventHandler(OnInteract);
            _input.KJump.Pressed += new EventHandler(OnJump);
        }
Beispiel #2
0
        public ThinkInputGuided(float speed = .125f)
        {
            Speed = speed;

            Jump = new JumpAbility();
            Swing = new SwingHitAbility(400, 1);
            Shooter = new ShooterAbility();
            Interact = new InteractAbility();
            _frozen = false;

              /*  // Subscribe to Input events
            _input = InputManager.Instance;
            _input.KUsePotion.Pressed += new EventHandler(OnUsePotion);
            _input.KHit.Pressed += new EventHandler(OnExecuteHit);
            _input.KInteract.Pressed += new EventHandler(OnInteract);
            _input.KJump.Pressed += new EventHandler(OnJump);*/
        }