public void SetEvent(Overlord.EventData data) { if (data == null) { return; } locationEvent = data; GetComponent <Image>().color = new Color(1, 1, 0.4f); GetComponent <Shadow>().effectColor = Color.yellow; }
private void Awake() { locationEvent = null; }