// Start is called before the first frame update void Start() { input = new Controls().Player; input.Enable(); input.Shoot.performed += Shoot_performed; //Invoke("split", 1); }
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; }