示例#1
0
 // Start is called before the first frame update
 void Start()
 {
     _camera           = GetComponentInChildren <Camera>();
     _structureManager = StructureManagerScript.Instance;
     _carousel         = _structureUI.Find("Structures");
     SpawnUIboxes();
 }
 private void Awake()
 {
     //Check if instance already exists
     if (Instance == null)
     {
         //if not, set instance to this
         Instance = this;
     }
 }