// Start is called before the first frame update
 void Start()
 {
     if (Instance != null && Instance != this)
     {
         Destroy(this.gameObject);
     }
     else
     {
         Instance = this;
     }
 }
예제 #2
0
 public void OnMouseDown()
 {
     if (j == 0)
     {
         text245.SetActive(false);
         Infotext.SetActive(true);
         j = 1;
     }
     else
     {
         text245.SetActive(true);
         Infotext.SetActive(false);
         j = 0;
     }
 }