// Update is called once per frame void Update() { if (skill.Equals(EnumsGame.GameSkills.ELETRIC_BASIC)) { duration -= Time.deltaTime; if (duration <= 0) { removeFromScreen(); } } }
private void initSkill(EnumsGame.GameSkills skill, Vector3 pos, float size) { if (skill.Equals(EnumsGame.GameSkills.FIRE_BASIC)) { fireBasic.initMe(pos, size); } else if (skill.Equals(EnumsGame.GameSkills.ELETRIC_BASIC)) { eletricBasic.initMe(pos, size); } else if (skill.Equals(EnumsGame.GameSkills.WATER_BASIC)) { waterBasic.initMe(pos, size); } }
public int getSkillLevel(EnumsGame.GameSkills skill) { int retorno = 0; if (skill.Equals(EnumsGame.GameSkills.FIRE_BASIC)) { retorno = skillsSituation[0]; } else if (skill.Equals(EnumsGame.GameSkills.ELETRIC_BASIC)) { retorno = skillsSituation[1]; } else if (skill.Equals(EnumsGame.GameSkills.WATER_BASIC)) { retorno = skillsSituation[2]; } else if (skill.Equals(EnumsGame.GameSkills.POISON)) { retorno = skillsSituation[3]; } else if (skill.Equals(EnumsGame.GameSkills.EARTHQUAKE)) { retorno = skillsSituation[4]; } else if (skill.Equals(EnumsGame.GameSkills.ARKANE)) { retorno = skillsSituation[5]; } else if (skill.Equals(EnumsGame.GameSkills.FIRE_PLUS)) { retorno = skillsSituation[6]; } else if (skill.Equals(EnumsGame.GameSkills.ELETRIC_PLUS)) { retorno = skillsSituation[7]; } else if (skill.Equals(EnumsGame.GameSkills.WATER_CURE)) { retorno = skillsSituation[8]; } else if (skill.Equals(EnumsGame.GameSkills.WATER_COMBO)) { retorno = skillsSituation[9]; } else if (skill.Equals(EnumsGame.GameSkills.COMBO_FIRE)) { retorno = skillsSituation[10]; } else if (skill.Equals(EnumsGame.GameSkills.COMBO_ELETRIC)) { retorno = skillsSituation[11]; } else if (skill.Equals(EnumsGame.GameSkills.BUBBLE_GEMSTONE)) { retorno = skillsSituation[12]; } else if (skill.Equals(EnumsGame.GameSkills.POWER_GEMSTONE)) { retorno = skillsSituation[13]; } else if (skill.Equals(EnumsGame.GameSkills.HP_GEMSTONE)) { retorno = skillsSituation[14]; } return(retorno); }