Exemple #1
0
 public void setJugador(GameObject JUG)
 {
     jugador     = JUG;
     vidaJugador = jugador.GetComponent <Vida> ();
     manaJugador = jugador.GetComponent <mana> ();
     vidaJugador.estaMueriendo += elJugadorEstaMuriendo;
 }
 // Use this for initialization
 void Start()
 {
     if (logicaDelNivel != null)
     {
         logica = logicaDelNivel.GetComponent <nivel> ();
     }
     intVida  = this.GetComponent <Vida>();
     instMana = this.GetComponent <mana>();
 }
Exemple #3
0
 public base_personnage(string _name,int _ID,santé _Santé, mana _Mana, energie _Energie, poudre _Poudre, vitess _Vitess, armor _Armor, encaissement _Encaissement, speed _Speed, tenacity _Tenacity, range _Range, damage _Damage, power _Power, life_steal _Life_Steal, vampirisme _Vampirisme, List<tool> _LT)
 {
     name = _name;
     ID = _ID;
     Santé = _Santé;
     Mana = _Mana;
     Energie = _Energie;
     Poudre = _Poudre;
     Vitess = _Vitess;
     Armor = _Armor;
     encaissement = _Encaissement;
     Speed = _Speed;
     Tenacity = _Tenacity;
     Range = _Range;
     Damage = _Damage;
     Power = _Power;
     Life_Steal = _Life_Steal;
     Vampirisme = _Vampirisme;
     List_tool = new List<tool>();
     List_tool = _LT;
 }
 // Use this for initialization
 void Start()
 {
     direccion   = Vector2.right;
     manaJugador = GetComponent <mana>();
 }
Exemple #5
0
 public base_personnage(santé _Santé, mana _Mana, energie _Energie, poudre _Poudre, vitess _Vitess, armor _Armor, encaissement _Encaissement, speed _Speed, tenacity _Tenacity, range _Range, damage _Damage, power _Power, life_steal _Life_Steal, vampirisme _Vampirisme)
 {
 }
Exemple #6
0
 void Awake()
 {
     _instance = this;
     nmanager  = GameObject.Find("NumberManager").GetComponent <Numbermanager>();
 }