Пример #1
0
 private void Start()
 {
     ObjectStartingPoints.ResetAllObjects += makeTotalPickupsZero;
     redPickup.SetActive(false);
     BluePickup.SetActive(false);
     WinningPortal.SetActive(false);
 }
Пример #2
0
    private void OnTriggerEnter(Collider other)
    {
        if (other.tag == "BluePickup")
        {
            BluePickup.SetActive(true);
            totalPickups++;
            areThereTwoPickups();
        }

        if (other.tag == "RedPickup")
        {
            redPickup.SetActive(true);
            totalPickups++;
            areThereTwoPickups();
        }
    }