Exemplo n.º 1
0
 override public void Harvest(bool replenish)
 {
     if (destroyed)
     {
         return;
     }
     GameMaster.realMaster.colonyController.storage.AddResource(ResourceType.Lumber, CountLumber());
     if (stage > TRANSIT_STAGE & modelHolder != null)
     {
         modelHolder.transform.parent = null;
         FallingTree ft = modelHolder.gameObject.AddComponent <FallingTree>();
         ft.SetModelStage(stage);
         ft.returnFunction = ReturnModelToPool;
         modelHolder       = null;
         spriter           = null;
     }
     Annihilate(PlantAnnihilationOrder.Gathered);
 }
Exemplo n.º 2
0
 override public void Harvest(bool replenish)
 {
     if (destroyed)
     {
         return;
     }
     GameMaster.realMaster.colonyController.storage.AddResource(ResourceType.Lumber, CountLumber());
     if (stage > TRANSIT_STAGE & modelHolder != null)
     {
         modelHolder.transform.parent = null;
         FallingTree ft = modelHolder.gameObject.AddComponent <FallingTree>();
         ft.SetModelStage(stage);
         ft.returnFunction = ReturnModelToPool;
         modelHolder       = null;
         spriter           = null;
     }
     //if (!replenish)
     Annihilate(true, false, false); // реплениш отключен, тк глючит - не успевает поставить спрайтер до обновления
     //else ResetToDefaults();
 }