//Obtain stat information from spawn, this is done by recieving level information from the spawner public void InitiateEnemyStats(int _level) { //Construct stats stat = new CombatStat(_level, shieldAffinity, shield, healthStrength, actionPointStrength, attackStrength, defenceStrength, agilityStrength, luckStrength, accuracyStrength, speedStrength); characterLevel = _level; //Obtain the Elemental Reaction Component elementalReaction = gameObject.GetComponent<EnemyElementalReaction>(); iniIndex = EnemyIndex (); }
//Obtain stat information from spawn, this is done by recieving level information from the spawner public void InitiateEnemyStats(int _level) { //Construct stats stat = new CombatStat(_level, shieldAffinity, shield, healthStrength, actionPointStrength, attackStrength, defenceStrength, agilityStrength, luckStrength, accuracyStrength, speedStrength); //Calculate Integrity shieldIntegrity = (int)((float)shield * (float)((float)shieldIntegrity/100f)); healthIntegrity = (int)((float)stat.health * (float)((float)healthIntegrity/100f)); //Obtain the Elemental Reaction Component elementalReaction = gameObject.GetComponent<EnemyElementalReaction>(); //print (character.levelMaxExperience); //print (stat.health); }