Example #1
0
 public void CheckAndInvokeEvent()
 {
     if (InputExt.GetButton(buttonName, buttonType))
     {
         callback.Invoke();
     }
 }
Example #2
0
 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));
 }