public void LoadData(Data data)
        {
            var playerInputData = (Data <bool, bool>)data;

            if (playerInputData.value0)
            {
                MeleeAttack.Enable();
            }
            else
            {
                MeleeAttack.Disable();
            }

            if (playerInputData.value1)
            {
                RangedAttack.Enable();
            }
            else
            {
                RangedAttack.Disable();
            }
        }
Exemple #2
0
 public void EnableRangedAttacking()
 {
     RangedAttack.Enable();
 }
Exemple #3
0
 public void EnableMeleeAttacking()
 {
     MeleeAttack.Enable();
 }
Exemple #4
0
 public void EnablePull()
 {
     Pull.Enable();
 }
Exemple #5
0
 public void EnableDash()
 {
     Dash.Enable();
 }