mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
fix: Chat Example Network Address OnValueChanged Wire-up
This commit is contained in:
parent
b09d1681a0
commit
685366e7e1
@ -38,7 +38,7 @@ RenderSettings:
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
m_IndirectSpecularColor: {r: 0.44657868, g: 0.49641263, b: 0.57481706, a: 1}
|
||||
m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1}
|
||||
m_UseRadianceAmbientProbe: 0
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
@ -312,6 +312,7 @@ MonoBehaviour:
|
||||
m_EditorClassIdentifier:
|
||||
sceneId: 1581524575
|
||||
serverOnly: 0
|
||||
visible: 0
|
||||
m_AssetId:
|
||||
hasSpawned: 0
|
||||
--- !u!1 &90143746
|
||||
@ -1425,7 +1426,7 @@ GameObject:
|
||||
- component: {fileID: 1027272350}
|
||||
- component: {fileID: 1027272349}
|
||||
m_Layer: 5
|
||||
m_Name: UsernameInput
|
||||
m_Name: NetworkAddressInput
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
@ -1506,7 +1507,7 @@ MonoBehaviour:
|
||||
m_PersistentCalls:
|
||||
m_Calls:
|
||||
- m_Target: {fileID: 1783103025}
|
||||
m_MethodName: set_playerName
|
||||
m_MethodName: SetHostname
|
||||
m_Mode: 0
|
||||
m_Arguments:
|
||||
m_ObjectArgument: {fileID: 0}
|
||||
|
@ -10,6 +10,11 @@ public class ChatNetworkManager : NetworkManager
|
||||
|
||||
public string PlayerName { get; set; }
|
||||
|
||||
public void SetHostname(string hostname)
|
||||
{
|
||||
networkAddress = hostname;
|
||||
}
|
||||
|
||||
public struct CreatePlayerMessage : NetworkMessage
|
||||
{
|
||||
public string name;
|
||||
|
@ -1 +1 @@
|
||||
m_EditorVersion: 2018.4.30f1
|
||||
m_EditorVersion: 2018.4.31f1
|
||||
|
Loading…
Reference in New Issue
Block a user