Beispiel #1
0
 //Start metotlarından önce can hesaplansın diye Awake de yaptık
 private void Awake()
 {
     //Player dan experience componentini aldık
     experience = GameObject.FindWithTag("Player").GetComponent <Experience>();
 }
Beispiel #2
0
 private void Awake()
 {
     experience   = GetComponent <Experience>();
     currentLevel = new LazyValue <int>(CalculateLevel);
 }