public override void OnLevelLoaded(LoadMode mode) { base.OnLevelLoaded(mode); RedirectCalls(); var multiplayerManager = new GameObject("MultiplayerManager"); m_mInstance = multiplayerManager.AddComponent <MultiplayerManager>(); var cameraController = GameObject.FindObjectOfType <CameraController>(); m_hideUI = cameraController.gameObject.AddComponent <HideUI>(); }
public override void OnLevelLoaded(LoadMode mode) { base.OnLevelLoaded(mode); RedirectCalls(); var multiplayerManager = new GameObject("MultiplayerManager"); m_mInstance = multiplayerManager.AddComponent<MultiplayerManager>(); var cameraController = GameObject.FindObjectOfType<CameraController>(); m_hideUI = cameraController.gameObject.AddComponent<HideUI>(); }