public void CheckAndInvokeEvent() { if (InputExt.GetButton(buttonName, buttonType)) { callback.Invoke(); } }
private void Update() { // If input button is registered, emit if (InputExt.GetButton(emitButtonName, buttonType)) { mousePosition = mainCamera.ScreenToWorldPoint(Input.mousePosition); emitter.Emit(mousePosition - (Vector2)transform.position); } }
public bool Supply() { return(InputExt.GetButton(buttonName, type)); }