Beispiel #1
0
 private void Awake()
 {
     exp = GetComponent <Experiences>();
     currentLevelTracker = new LazyValue <int>(CalculateLevel);
 }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     // get the info from the player
     expInfo   = GameObject.FindWithTag("Player").GetComponent <Experiences>();
     expPoints = GetComponent <TextMeshProUGUI>();
 }