void Awake() { TypeLevel = Application.loadedLevelName; collectable_UI = GameObject.FindObjectOfType <CollectableUI>(); }
void Start() { cUI = GameObject.FindGameObjectWithTag("CollectableUI").GetComponent<CollectableUI>(); cUI.UpdateCollectableCount(0, totalAmountCollectables); currentAmountCollectables = 0; }