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