Example #1
0
        public override void ExtraSetup()
        {
            networkManagerHud = CreateMonoBehaviour <NetworkManagerHud>();
            networkManagerHud.NetworkManager = manager;
            networkManagerHud.OfflineGO      = CreateGameObject();
            networkManagerHud.OnlineGO       = CreateGameObject();

            //Initial state in the prefab
            networkManagerHud.OfflineGO.SetActive(true);
            networkManagerHud.OnlineGO.SetActive(false);
        }
        public override void ExtraSetup()
        {
            gameObject        = new GameObject("NetworkManagerHud", typeof(NetworkManagerHud));
            networkManagerHud = gameObject.GetComponent <NetworkManagerHud>();
            networkManagerHud.NetworkManager = manager;
            networkManagerHud.OfflineGO      = new GameObject();
            networkManagerHud.OnlineGO       = new GameObject();

            //Initial state in the prefab
            networkManagerHud.OfflineGO.SetActive(true);
            networkManagerHud.OnlineGO.SetActive(false);
        }