public void LevelUp() { StartCoroutine(chatBoxCall.ChatBoxOpener("강해진 기분이 드는데?")); ++level; exp = (exp - maxExp); maxExp = (maxExp * level); // 이부분은 나중에.. 레벨별로 나눠서 경험치 부과 hpIncresase._MaxHp += 10; float increasedHp = hpIncresase._MaxHp - hpIncresase._hp; hpIncresase._hp = hpIncresase._MaxHp; maxHpIncrease.HpUp(increasedHp); mpIncrease.maxMp += 1; float increasedMp = mpIncrease.maxMp - mpIncrease.nowMp; Debug.Log(mpIncrease.maxMp + "최대엠피" + mpIncrease.nowMp + "지금엠피"); mpIncrease.nowMp = mpIncrease.maxMp; // 레벨업보상 maxHpIncrease.MpUp(increasedMp); // 레벨업보상으로 마나채워줌 // maxHpIncrease.maxhP += 10; Debug.Log(level + "되었음"); }
public void plusMp() { if (nowMp < maxMp) { nowMp++; } mpGageControl.MpUp(1); }