Пример #1
0
 private void CreateText(int damage, Attacked newAttackedObject)
 {
     if (m_TextController != null)
     {
         m_TextController.CreateTextBehaviour(damage, newAttackedObject.transform, false);
     }
 }
 private void LevelUp()
 {
     level++;
     SetNextLevel();
     m_TextController.CreateTextBehaviour("LEVEL UP!!!", this.transform, 12f, Color.cyan, textRange, textRange, 2f);
     percentageCurrentLevel = (float)(CurrentExperience - ExperienceCumulativeCurve(level)) / nextLevelExperience;
 }