Exemple #1
0
 public static void FireTriggerEvent(Gaze_TriggerEventArgs e)
 {
     if (OnTriggerEvent != null)
     {
         OnTriggerEvent(e);
     }
 }
    private void Gaze_EventManager_OnTriggerEvent(Gaze_TriggerEventArgs e)
    {
        if (e.IsTrigger && ((GameObject)e.Sender).GetInstanceID().Equals(Interaction.gameObject.GetInstanceID()))
        {
            NumTimes--;

            if (NumTimes == 0)
            {
                ValidateCustomCondition(true);
            }
        }
    }