Ejemplo n.º 1
0
 /// <summary>Callback when the instance is being destroyed.</summary>
 private void OnDestroy()
 {
     for (int i = 0; i < radioButtons.Length; i++)
     {
         radioButtons[i].onClick.RemoveAllListeners();
     }
     OnIndexWasSelected = null;
 }
Ejemplo n.º 2
0
//	public EventHandlerInt OnValueAbove;
//	public EventHandlerInt OnValueBelow;
//	public EventHandlerFloat OnValueAbovePercent;
//	public EventHandlerFloat OnValueBelowPercent;
    public EventHandlerInt InvokeIfMinimum(int minimum, EventHandlerInt handler)
    {
        return(v =>
        {
            if (v >= minimum)
            {
                handler(v);
            }
        });
    }
Ejemplo n.º 3
0
 /// <summary>Callback before the component is destroyed.</summary>
 private void OnDestroy()
 {
     //delegates
     OnPointsScored = null; OnSuccessfulMove = null; AnimatingFinished = null;
 }