Inheritance: UnityEngine.MonoBehaviour
Example #1
0
        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>();
        }
Example #2
0
        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>();
        }