Example #1
0
 public CartaPartida(CartaBase ca)
 {
     this.assetCarta = ca;
     // get unique int ID
     ResetCosteMana();
     idCarta = IDFactory.GetBattleUniqueID();
     Recursos.CartasCreadasEnElJuego.Add(idCarta, this);
 }
Example #2
0
 // CONSTRUCTOR
 public Ente(AreaPosition area, CartaBase ca)
 {
     this.area       = area;
     this.assetCarta = ca;
     defensa         = ca.Defensa;
     ataque          = ca.Ataque;
     idCriatura      = IDFactory.GetBattleUniqueID();
     Recursos.EntesCreadosEnElJuego.Add(idCriatura, this);
 }
Example #3
0
 protected virtual void Awake()
 {
     PlayerID = IDFactory.GetBattleUniqueID();
     Reset();
 }