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

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