protected override void ExecuteEvent(string eventName)
 {
     base.ExecuteEvent(eventName);
     if (CallRecipient != null)
     {
         CallRecipient.GetComponent <MonoBehaviour>().SendMessage("DisableHighLight", null, SendMessageOptions.DontRequireReceiver);
     }
 }
예제 #2
0
 protected virtual void ExecuteEvent(string eventName, SwipeData.Direction direction)
 {
     if (CallRecipient != null)
     {
         swipeData.EventObject1 = gameObject;
         swipeData.Tag1         = Tag;
         swipeData.Direction1   = direction;
         CallRecipient.GetComponent <MonoBehaviour>().SendMessage(eventName, swipeData, SendMessageOptions.DontRequireReceiver);
     }
     if (CallRecipient != null)
     {
         CallRecipient.GetComponent <MonoBehaviour>().SendMessage("DisableHighLight", null, SendMessageOptions.DontRequireReceiver);
     }
 }