调接口

This commit is contained in:
lilubing 2024-12-29 17:50:20 +08:00
parent ace1818331
commit 886b713b94
7 changed files with 28 additions and 27 deletions

View File

@ -1545,7 +1545,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
npcId:
recusebtn: {fileID: 0}
nstate: 1
nstate: 0
target: {fileID: 0}
currentTarget: {x: 0, y: 0, z: 0}
targetPoints: []

View File

@ -638,13 +638,13 @@ public class test : MonoBehaviour
break;
//½øÈë·¿¼ä
//½øÈë·¿¼ä
case "hall.JoinRoom":
JoinRoomResponse joinRoomResponse = ProtoBufffer.DeSerialize<JoinRoomResponse>(bytes);
byte[] joinByte = joinRoomResponse.Data.ToByteArray();
PlayerJoinResponse playerJoinResponse = ProtoBufffer.DeSerialize<PlayerJoinResponse>(joinByte);
Debug.Log("鯤소:" + playerJoinResponse.UserName + "속흙렛쇌:" + playerJoinResponse.RoomId.ToString());
GameObject.Find("Player").transform.position = new Vector3((float)playerJoinResponse.X, (float)playerJoinResponse.Y, (float)playerJoinResponse.Z);
GameObject.Find("player").transform.position = new Vector3((float)playerJoinResponse.X, (float)playerJoinResponse.Y, (float)playerJoinResponse.Z);
Debug.Log("鯤소貫零");
break;

View File

@ -11,15 +11,7 @@ public class test111 : MonoBehaviour
void Start()
{
canvas1.gameObject.SetActive(true);
canvas2.gameObject.SetActive(false);
camera1.gameObject.SetActive(false);
}
// Update is called once per frame
void Update()
{
if(ReadRoom.instance.isenter)
if (ReadRoom.instance.isenter)
{
Debug.Log(ReadRoom.instance.isenter);
canvas1.gameObject.SetActive(false);
@ -28,12 +20,16 @@ public class test111 : MonoBehaviour
}
else
{
if (!ReadRoom.instance.iszongzhihui)
{
canvas1.gameObject.SetActive(true);
}
canvas2.gameObject.SetActive(false);
camera1.gameObject.SetActive(false);
canvas1.gameObject.SetActive(false);
canvas2.gameObject.SetActive(true);
camera1.gameObject.SetActive(true);
}
}
// Update is called once per frame
void Update()
{
}
}

View File

@ -14283,7 +14283,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 1a829b8d12d88e14487451b9c601ab85, type: 3}
m_Name:
m_EditorClassIdentifier:
npc: {fileID: 0}
npc: {fileID: 9144465012532105757, guid: 4bc999dc543a61148a0ba3bb1dd45a4d, type: 3}
npcposition: []
--- !u!1 &702643057
GameObject:
@ -26953,8 +26953,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 44720823678ca7c42a08f4409ab025ff, type: 3}
m_Name:
m_EditorClassIdentifier:
serverIP: ws://222.212.40.39
serverPort: 13497
serverIP: ws://192.168.3.110
serverPort: 8445
type:
--- !u!1 &1528375180 stripped
GameObject:
@ -31364,7 +31364,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 44
m_RootOrder: 43
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &1845569623
PrefabInstance:
@ -34068,6 +34068,10 @@ PrefabInstance:
propertyPath: jsonReader
value:
objectReference: {fileID: 1039624186}
- target: {fileID: 2043937647, guid: 807d6c3842cc1714caf2b4497e4daed7, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1516369156415528768, guid: 807d6c3842cc1714caf2b4497e4daed7, type: 3}
propertyPath: m_Color.a
value: 0
@ -34162,7 +34166,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 6852673806710748770, guid: 807d6c3842cc1714caf2b4497e4daed7, type: 3}
propertyPath: m_IsActive
value: 0
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 807d6c3842cc1714caf2b4497e4daed7, type: 3}

View File

@ -4892,8 +4892,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 44720823678ca7c42a08f4409ab025ff, type: 3}
m_Name:
m_EditorClassIdentifier:
serverIP: ws://222.212.40.39
serverPort: 13497
serverIP: ws://192.168.3.110
serverPort: 8445
type:
--- !u!114 &7695717545649794846
MonoBehaviour:

View File

@ -23,6 +23,7 @@ public class NPCController : MonoBehaviour
}
public void INITNPCMOVE(Vector3 pos)
{
Debug.Log("11111111");
foreach (var npcDict in npcsList)
{
foreach (var kvp in npcDict)

View File

@ -42,10 +42,10 @@ public class LoginPanel : Base
// 创建登录请求的 body
auth_login loginBody = new auth_login
{
grantType = "password",
grantType = "password",
clientId = "e5cd7e4891bf95d1d19206ce24a7b32e",
userType = "company_user",
username = "13051628292",//"ZF16c788632",13699802230,13051628292
username = "13699802230",//"ZF16c788632",13699802230,13051628292
password = "YYL5371!"
};
image.gameObject.SetActive (true);