Ejemplo n.º 1
0
    public override void EvolveStatsCurrentBuilding(int level)
    {
        int i_newRessourceTank = (int)this.GetType().GetField("I_ressourceTankV" + level).GetValue(this);

        GO_ressourcesManager.GetComponent <RessourcesManager>().AddLimitStock(i_newRessourceTank - I_ressourceTank);
        I_ressourceTank = i_newRessourceTank;
        I_maxLife       = (int)this.GetType().GetField("I_maxLifeL" + level).GetValue(this);
        I_regenPoint    = (int)this.GetType().GetField("I_regenPointL" + level).GetValue(this);
    }
Ejemplo n.º 2
0
 public new void OnDestroy()
 {
     GO_ressourcesManager.GetComponent <RessourcesManager>().AddLimitStock(-I_ressourceTank);
     base.OnDestroy();
 }
Ejemplo n.º 3
0
 // Start is called before the first frame update
 new void Start()
 {
     base.Start();
     ActualBuildingType = TypeEnvironement.RessourceTank;
     GO_ressourcesManager.GetComponent <RessourcesManager>().AddLimitStock(I_ressourceTank);
 }
Ejemplo n.º 4
0
 public void AddRessourcesToStock_TimePassed(EventArgs e)
 {
     GO_ressourcesManager.GetComponent <RessourcesManager>().AddToStock(I_ressource);
 }