private void Start() { if (IsServer) { //Storytelling tgtMode = true; StartCoroutine(ToggleStory(0)); // Add items from InitialContents list List <GameObject> initList = Provider.GetComponent <Spawner>().InitialContents; foreach (GameObject item in initList) { PrefabEntryList.AddItem(item); } SpawnedObjectList.AddObjects(GUI_ShuttleControl.GetObjectsOf <LivingHealthBehaviour>()); // Done via editor in this example, but can be done via code as well, like this: // NestedSwitcher.OnPageChange.AddListener( RefreshSubpageLabel ); } }
public void RegisterShuttleGuiScript(GUI_ShuttleControl shuttleGui) { shuttleControlGUI = shuttleGui; }