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"); }
public void SetInactive() { isEnabled = false; GetComponent <Image>().sprite = disabledImage; MapEvents.SendEvent(visualizerName + ": " + (isEnabled ? "active" : "inactive")); }