Advertisement
salahzar

Conteggio.cs

Feb 16th, 2021
927
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.62 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class Conteggio : MonoBehaviour
  6. {
  7.     public GameObject panel1;
  8.     public GameObject panel2;
  9.     public GameObject panel3;
  10.     public GameObject panel4;
  11.  
  12.     // Start is called before the first frame update
  13.     void Start()
  14.     {
  15.        
  16.     }
  17.     public void checkObjects()
  18.     {
  19.         if(panel1.activeSelf && panel2.activeSelf && panel3.activeSelf && panel4.activeSelf )
  20.         {
  21.             Debug.Log("Hai vinto");
  22.         }
  23.     }
  24.  
  25.     // Update is called once per frame
  26.     void Update()
  27.     {
  28.        
  29.     }
  30. }
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement