protected virtual void Awake() { //distribution du bonus d'initiative auto switch (type) { case "Rogue": initBonus = 15; break; case "Mage": initBonus = 10; break; case "Warrior": initBonus = 5; break; default: initBonus = 0; break; } if (currentHP <= 0) { currentHP = 100f; } //currentAp = DataContainer.singleton.globalAP.apInfo.maxAp; AttackModel coupDeGriffe = new AttackModel("coupDeGriffe", 1, Vector2.zero, 3f, 5); coupDeGriffe.AddEffect(new Effects(0, 3, 0, 0, 30, 1)); //GetAttacks() }
// Start is called before the first frame update void Awake() { AttackModel attack1 = new AttackModel("le sboui", 666, Vector2.zero, 0f, 666); attack1.AddEffect(new Effects()); }