コード例 #1
0
 private void Start()
 {
     ObjectStartingPoints.ResetAllObjects += makeTotalPickupsZero;
     redPickup.SetActive(false);
     BluePickup.SetActive(false);
     WinningPortal.SetActive(false);
 }
コード例 #2
0
 private void areThereTwoPickups()
 {
     if (totalPickups == 2)
     {
         print("YOU GOT BOTH PICKUPS!!!");
         WinningPortal.SetActive(true);
     }
 }
コード例 #3
0
 private void makeTotalPickupsZero()
 {
     totalPickups = 0;
     WinningPortal.SetActive(false);
 }