Skip to content
This repository was archived by the owner on Aug 14, 2019. It is now read-only.

PlayerLevel.cs

Erik edited this page Apr 23, 2019 · 1 revision
Dependencies (What do I need to include to use this script in another projec?):
  • None
Public Methods:
  • LevelUp() - Instantly Levels up the player.
  • GainExperience(int amount) - Gains amount experience and will trigger LevelUp when needed.
Public Events:
  • OnLevelUp - Triggers when a player's level increases.
  • OnExperienceGained - Triggers when the player gains experience.
Configurable Fields:
  • None
General Overview:

This requires external scripts to invoke LevelUp and GainExperience. This can be from a button, enemy deaths, etc.

Clone this wiki locally