IEnumerator InvokeAfterDelay(T_UNITY_EVENT actions, object value) { yield return(waitForDelay); actions.Invoke((T)value); callbacks?.Invoke(); }
public void OnModuleLoaded() { nbModulesLoaded++; if (nbModulesLoaded == nbModulesToLoad) { onAllModulesLoaded.Invoke(); } }
public void Evaluate() { if (variable.Value) { onTrue.Invoke(); } else { onFalse.Invoke(); } }
public void Evaluate() { if (comparatorType == ComparatorType.AND ? EvaluateAnd() : EvaluateOr()) { onTrue.Invoke(); } else { onFalse.Invoke(); } }
void OnInput() { if (playerInput.IsTouching) { if (!isTouching) { isTouching = true; onTouch.Invoke(); } } else if (isTouching) { onRelease?.Invoke(); isTouching = false; } }
public override void OnTouch(Vector3 hitPosition, Vector3 touchPosition) { onTouchAction.Invoke(); }
void IBasicGameEventListener.Invoke() { callbacks.Invoke(); }
public void Do() { action.Invoke(); }
protected void DoActions() { actions?.Invoke(); }
void Invoke() { callback?.Invoke(); }