Inheritance: UnityEngine.MonoBehaviour
コード例 #1
0
 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.");
 }
コード例 #2
0
 /// <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;
 }
コード例 #3
0
 protected virtual void OnClientDisconnectedFromHost(NetworkConnection conn, out NetworkMigrationManager.SceneChangeOption sceneChange)
 {
   sceneChange = NetworkMigrationManager.SceneChangeOption.StayInOnlineScene;
 }
コード例 #4
0
 public void SetupMigrationManager(NetworkMigrationManager man)
 {
     m_MigrationManager = man;
 }