Exemple #1
0
    public override void OnPointerClick(UnityEngine.EventSystems.PointerEventData eventData)
    {
        base.OnPointerClick(eventData);
        isEnabled = !isEnabled;
        GetComponent <Image>().sprite = isEnabled ? enabledImage : disabledImage;

        MapEvents.SendEvent("CLEARDATA");
        MapEvents.SendEvent(visualizerName + ": " + (isEnabled ? "active" : "inactive"));
        MapEvents.SendEvent("BUILDDATA");
    }
Exemple #2
0
 public void SetInactive()
 {
     isEnabled = false;
     GetComponent <Image>().sprite = disabledImage;
     MapEvents.SendEvent(visualizerName + ": " + (isEnabled ? "active" : "inactive"));
 }