Beispiel #1
0
 void Start()
 {
     gm = GameObject.FindObjectOfType <GameManager>();
     colletableManager = GameObject.FindObjectOfType <ColletableManager>();
     lifebarAnim       = lifeBarContent.GetComponent <Animator>();
     playerCtrl        = player.GetComponent <PlayerCtrl>();
     health            = playerCtrl.GetTotalHealth();
     SetLifeWidth();
 }
Beispiel #2
0
 private void Start()
 {
     cManager = GameObject.FindObjectOfType <ColletableManager>();
 }