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();
            }
        }
示例#2
0
 public void EnableRangedAttacking()
 {
     RangedAttack.Enable();
 }
示例#3
0
 public void EnableMeleeAttacking()
 {
     MeleeAttack.Enable();
 }
示例#4
0
 public void EnablePull()
 {
     Pull.Enable();
 }
示例#5
0
 public void EnableDash()
 {
     Dash.Enable();
 }