Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
 public void DisableRangedAttacking()
 {
     RangedAttack.Disable();
 }
Exemplo n.º 3
0
 public void DisableMeleeAttacking()
 {
     MeleeAttack.Disable();
 }
Exemplo n.º 4
0
 public void DisablePull()
 {
     Pull.Disable();
 }
Exemplo n.º 5
0
 public void DisableDash()
 {
     Dash.Disable();
 }