Example #1
0
    IEnumerator InvokeAfterDelay(T_UNITY_EVENT actions, object value)
    {
        yield return(waitForDelay);

        actions.Invoke((T)value);
        callbacks?.Invoke();
    }
Example #2
0
 public void OnModuleLoaded()
 {
     nbModulesLoaded++;
     if (nbModulesLoaded == nbModulesToLoad)
     {
         onAllModulesLoaded.Invoke();
     }
 }
Example #3
0
 public void Evaluate()
 {
     if (variable.Value)
     {
         onTrue.Invoke();
     }
     else
     {
         onFalse.Invoke();
     }
 }
Example #4
0
 public void Evaluate()
 {
     if (comparatorType == ComparatorType.AND ? EvaluateAnd() : EvaluateOr())
     {
         onTrue.Invoke();
     }
     else
     {
         onFalse.Invoke();
     }
 }
Example #5
0
 void OnInput()
 {
     if (playerInput.IsTouching)
     {
         if (!isTouching)
         {
             isTouching = true;
             onTouch.Invoke();
         }
     }
     else if (isTouching)
     {
         onRelease?.Invoke();
         isTouching = false;
     }
 }
Example #6
0
 public override void OnTouch(Vector3 hitPosition, Vector3 touchPosition)
 {
     onTouchAction.Invoke();
 }
Example #7
0
 void IBasicGameEventListener.Invoke()
 {
     callbacks.Invoke();
 }
Example #8
0
 public void Do()
 {
     action.Invoke();
 }
Example #9
0
 protected void DoActions()
 {
     actions?.Invoke();
 }
Example #10
0
 void Invoke()
 {
     callback?.Invoke();
 }