private void Start() { ObjectStartingPoints.ResetAllObjects += makeTotalPickupsZero; redPickup.SetActive(false); BluePickup.SetActive(false); WinningPortal.SetActive(false); }
private void OnTriggerEnter(Collider other) { if (other.tag == "BluePickup") { BluePickup.SetActive(true); totalPickups++; areThereTwoPickups(); } if (other.tag == "RedPickup") { redPickup.SetActive(true); totalPickups++; areThereTwoPickups(); } }