private void Awake() { FishButton.onClick.AddListener(() => { var factory = new CompletedMarkFactory(); go = factory.Create(); go.transform.SetParent(this.transform); go.transform.localPosition = new Vector2(-25, 0); Distribution(ResourceType.Fish); FishButton.interactable = false; WheatButton.interactable = false; IsDistributed = true; }); WheatButton.onClick.AddListener(() => { var factory = new CompletedMarkFactory(); go = factory.Create(); go.transform.SetParent(this.transform); go.transform.localPosition = new Vector2(-25, 0); Distribution(ResourceType.Wheat); FishButton.interactable = false; WheatButton.interactable = false; IsDistributed = true; }); }
public void AbilityActivate() { // GetComponent<Image>().color = new Color(0,0,0); var factory = new CompletedMarkFactory(); var go = factory.Create(); go.transform.SetParent(this.transform); go.transform.localPosition = new Vector2(-25, 0); executeButton.interactable = false; Executed = true; }