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>(); }
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>(); }
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) { }
void Awake() { _instance = this; nmanager = GameObject.Find("NumberManager").GetComponent <Numbermanager>(); }