Esempio n. 1
0
 private void Start()
 {
     gameManager = FindObjectOfType <GameManager_SideScroller>();
     if (type == PickupType.Item)
     {
         spriteRenderer = GetComponent <SpriteRenderer>();
     }
 }
Esempio n. 2
0
 // Start is called before the first frame update
 void Start()
 {
     health      = maxHealth;
     gameManager = FindObjectOfType <GameManager_SideScroller>();
 }
Esempio n. 3
0
 void Start()
 {
     gameManager = FindObjectOfType <GameManager_SideScroller>();
     position    = transform.position;
 }
Esempio n. 4
0
 void Start()
 {
     gameManager = FindObjectOfType <GameManager_SideScroller>();
 }