Пример #1
0
 // Start is called before the first frame update
 void Start()
 {
     input = new Controls().Player;
     input.Enable();
     input.Shoot.performed += Shoot_performed;
     //Invoke("split", 1);
 }
Пример #2
0
 public void BindControls(Controls.PlayerActions iam)
 {
     playerActions = iam;
     // Bind discrete events using C# delegates
     iam.Jump.performed          += OnJump;
     iam.Attack.performed        += OnAttack;
     iam.SpecialAttack.performed += OnSpecialAttack;
 }