private void Init() { if (this.m_Initialized && this.m_HostMigrationProperty != null) return; this.m_Initialized = true; this.m_Manager = this.target as NetworkMigrationManager; this.m_HostMigrationProperty = this.serializedObject.FindProperty("m_HostMigration"); this.m_ShowGUIProperty = this.serializedObject.FindProperty("m_ShowGUI"); this.m_OffsetXProperty = this.serializedObject.FindProperty("m_OffsetX"); this.m_OffsetYProperty = this.serializedObject.FindProperty("m_OffsetY"); this.m_HostMigrationLabel = new GUIContent("Use Host Migration", "s."); }
/// <summary> /// <para>This sets up a NetworkMigrationManager object to work with this NetworkManager.</para> /// </summary> /// <param name="man">The migration manager object to use with the NetworkManager.</param> public void SetupMigrationManager(NetworkMigrationManager man) { this.m_MigrationManager = man; }
protected virtual void OnClientDisconnectedFromHost(NetworkConnection conn, out NetworkMigrationManager.SceneChangeOption sceneChange) { sceneChange = NetworkMigrationManager.SceneChangeOption.StayInOnlineScene; }
public void SetupMigrationManager(NetworkMigrationManager man) { m_MigrationManager = man; }