Example #1
0
 public void InformOfEvent(EventBroadcast.Event _event)
 {
     if (_event == EventBroadcast.Event.PLAYER_SELECTED_STONE)
     {
         if (isStructureActive)
         {
             Resource resource = new Resource(stackMultiplier.GetStackedAmount(), Resource.ResourceType.MINERAL);
             tileGrid.ReportStoneCollectAdjustmentValue(resource.GetAmount());
         }
     }
 }
Example #2
0
 public void InformOfEvent(EventBroadcast.Event _event)
 {
     if (_event == EventBroadcast.Event.PLAYER_COLLECTED_DIRT)
     {
         if (isStructureActive)
         {
             ActionAdjustResources actionAdjustResources = new ActionAdjustResources(new Resource(stackMultiplier.GetStackedAmount(), Resource.ResourceType.MINERAL));
             actionAdjustResources.Execute();
         }
     }
 }