// Use this for initialization void Start() { clueReference = new Dictionary <CluePlaceholder, GameObject>(); SetActiveContatiner(); SpawnGeneralClues(); localSpec = null; beginningTextContainer = GameObject.Find("BeginningText"); netManager = NetworkManager.singleton as OMGNetManager; //get local spec GetLocalSpec(); //change to private text ChangeToPrivateText(); //remove non-local player intro texts RemoveIntroTexts(); }
// Use this for initialization void Start() { client = NetworkManager.singleton?.client; if (OnLoadStory == null) { OnLoadStory = new StoryLoadEvent(); } RegisterHandlers(); if (NetworkServer.active) { OMGNetManager manager = (NetworkManager.singleton as OMGNetManager); _currentStory = manager?.storyServerManager?.CurrentStory; StartCoroutine(NotifyEventListenersAsync()); } else if (NetworkClient.active) { GetStory(); } }