Exemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     if (instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         instance = this;
     }
 }
Exemplo n.º 2
0
 void SetupWorkshopLibrary()
 {
     workshopMenu = Instantiate(steamWorkshopPrefab, menuPanelParent).GetComponent <WorkshopMenu>();
     workshopMenu.Setup();
     workshopMenu.SetCloseEvent(CloseSteamWorkshop);
 }