// Use this for initialization void Start() { Button btn = growthButton.GetComponent <Button>(); timing = 5; cropYield = 1; btn.onClick.AddListener(TaskOnClick); city.expand(); ticking = false; }