Exemplo n.º 1
0
    private void GathererAI_OnGathererClicked(object sender, EventArgs e)
    {
        GathererAI gathererAI = sender as GathererAI;

        if (selectedGathererAI != null)
        {
            selectedGathererAI.HideSelectedSprite();
        }
        selectedGathererAI = gathererAI;
        selectedGathererAI.ShowSelectedSprite();
    }
Exemplo n.º 2
0
 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>();
 }
Exemplo n.º 3
0
 public void AddGatherer(GathererAI ai)
 {
     gatherers.Add(ai);
 }