private void GathererAI_OnGathererClicked(object sender, EventArgs e) { GathererAI gathererAI = sender as GathererAI; if (selectedGathererAI != null) { selectedGathererAI.HideSelectedSprite(); } selectedGathererAI = gathererAI; selectedGathererAI.ShowSelectedSprite(); }
void Start() { extractorList = new List <Extractor>(); storageDropoffs = new List <StorageNode>(); resourceContentItems = new List <GameObject>(); ui = FindObjectOfType <UIManager>(); gathererUI = ui.gathererUI; title = ui.gathererTitle; content = ui.gathererContent; selectingExtractor = false; displayResource = true; displayStorage = true; gathererAI = GetComponent <GathererAI>(); manager = FindObjectOfType <GameManager>(); }
public void AddGatherer(GathererAI ai) { gatherers.Add(ai); }