private void Awake() { collector = GetComponent <MultiplePowerupCollector>(); singleCollector = GetComponent <PowerupCollector>(); if (!collector.CollectorEnabled) { PowerupColorDisplay.Instance.gameObject.SetActive(false); } collector.PowerupCollectEvent.AddListener(OnPowerupCollect); }
private void Awake() { collector = GetComponent <PowerupCollector>(); }