调接口
This commit is contained in:
parent
ace1818331
commit
886b713b94
@ -1545,7 +1545,7 @@ MonoBehaviour:
|
|||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
npcId:
|
npcId:
|
||||||
recusebtn: {fileID: 0}
|
recusebtn: {fileID: 0}
|
||||||
nstate: 1
|
nstate: 0
|
||||||
target: {fileID: 0}
|
target: {fileID: 0}
|
||||||
currentTarget: {x: 0, y: 0, z: 0}
|
currentTarget: {x: 0, y: 0, z: 0}
|
||||||
targetPoints: []
|
targetPoints: []
|
||||||
|
@ -644,7 +644,7 @@ public class test : MonoBehaviour
|
|||||||
byte[] joinByte = joinRoomResponse.Data.ToByteArray();
|
byte[] joinByte = joinRoomResponse.Data.ToByteArray();
|
||||||
PlayerJoinResponse playerJoinResponse = ProtoBufffer.DeSerialize<PlayerJoinResponse>(joinByte);
|
PlayerJoinResponse playerJoinResponse = ProtoBufffer.DeSerialize<PlayerJoinResponse>(joinByte);
|
||||||
Debug.Log("鯤소:" + playerJoinResponse.UserName + "속흙렛쇌:" + playerJoinResponse.RoomId.ToString());
|
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("鯤소貫零");
|
Debug.Log("鯤소貫零");
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
@ -11,15 +11,7 @@ public class test111 : MonoBehaviour
|
|||||||
|
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
canvas1.gameObject.SetActive(true);
|
if (ReadRoom.instance.isenter)
|
||||||
canvas2.gameObject.SetActive(false);
|
|
||||||
camera1.gameObject.SetActive(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update is called once per frame
|
|
||||||
void Update()
|
|
||||||
{
|
|
||||||
if(ReadRoom.instance.isenter)
|
|
||||||
{
|
{
|
||||||
Debug.Log(ReadRoom.instance.isenter);
|
Debug.Log(ReadRoom.instance.isenter);
|
||||||
canvas1.gameObject.SetActive(false);
|
canvas1.gameObject.SetActive(false);
|
||||||
@ -28,12 +20,16 @@ public class test111 : MonoBehaviour
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!ReadRoom.instance.iszongzhihui)
|
|
||||||
|
canvas1.gameObject.SetActive(false);
|
||||||
|
canvas2.gameObject.SetActive(true);
|
||||||
|
camera1.gameObject.SetActive(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
{
|
{
|
||||||
canvas1.gameObject.SetActive(true);
|
|
||||||
}
|
|
||||||
canvas2.gameObject.SetActive(false);
|
|
||||||
camera1.gameObject.SetActive(false);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14283,7 +14283,7 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: 1a829b8d12d88e14487451b9c601ab85, type: 3}
|
m_Script: {fileID: 11500000, guid: 1a829b8d12d88e14487451b9c601ab85, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
npc: {fileID: 0}
|
npc: {fileID: 9144465012532105757, guid: 4bc999dc543a61148a0ba3bb1dd45a4d, type: 3}
|
||||||
npcposition: []
|
npcposition: []
|
||||||
--- !u!1 &702643057
|
--- !u!1 &702643057
|
||||||
GameObject:
|
GameObject:
|
||||||
@ -26953,8 +26953,8 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: 44720823678ca7c42a08f4409ab025ff, type: 3}
|
m_Script: {fileID: 11500000, guid: 44720823678ca7c42a08f4409ab025ff, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
serverIP: ws://222.212.40.39
|
serverIP: ws://192.168.3.110
|
||||||
serverPort: 13497
|
serverPort: 8445
|
||||||
type:
|
type:
|
||||||
--- !u!1 &1528375180 stripped
|
--- !u!1 &1528375180 stripped
|
||||||
GameObject:
|
GameObject:
|
||||||
@ -31364,7 +31364,7 @@ Transform:
|
|||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 44
|
m_RootOrder: 43
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!1001 &1845569623
|
--- !u!1001 &1845569623
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
@ -34068,6 +34068,10 @@ PrefabInstance:
|
|||||||
propertyPath: jsonReader
|
propertyPath: jsonReader
|
||||||
value:
|
value:
|
||||||
objectReference: {fileID: 1039624186}
|
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}
|
- target: {fileID: 1516369156415528768, guid: 807d6c3842cc1714caf2b4497e4daed7, type: 3}
|
||||||
propertyPath: m_Color.a
|
propertyPath: m_Color.a
|
||||||
value: 0
|
value: 0
|
||||||
@ -34162,7 +34166,7 @@ PrefabInstance:
|
|||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 6852673806710748770, guid: 807d6c3842cc1714caf2b4497e4daed7, type: 3}
|
- target: {fileID: 6852673806710748770, guid: 807d6c3842cc1714caf2b4497e4daed7, type: 3}
|
||||||
propertyPath: m_IsActive
|
propertyPath: m_IsActive
|
||||||
value: 0
|
value: 1
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
m_RemovedComponents: []
|
m_RemovedComponents: []
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: 807d6c3842cc1714caf2b4497e4daed7, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: 807d6c3842cc1714caf2b4497e4daed7, type: 3}
|
||||||
|
@ -4892,8 +4892,8 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: 44720823678ca7c42a08f4409ab025ff, type: 3}
|
m_Script: {fileID: 11500000, guid: 44720823678ca7c42a08f4409ab025ff, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
serverIP: ws://222.212.40.39
|
serverIP: ws://192.168.3.110
|
||||||
serverPort: 13497
|
serverPort: 8445
|
||||||
type:
|
type:
|
||||||
--- !u!114 &7695717545649794846
|
--- !u!114 &7695717545649794846
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
|
@ -23,6 +23,7 @@ public class NPCController : MonoBehaviour
|
|||||||
}
|
}
|
||||||
public void INITNPCMOVE(Vector3 pos)
|
public void INITNPCMOVE(Vector3 pos)
|
||||||
{
|
{
|
||||||
|
Debug.Log("11111111");
|
||||||
foreach (var npcDict in npcsList)
|
foreach (var npcDict in npcsList)
|
||||||
{
|
{
|
||||||
foreach (var kvp in npcDict)
|
foreach (var kvp in npcDict)
|
||||||
|
@ -45,7 +45,7 @@ public class LoginPanel : Base
|
|||||||
grantType = "password",
|
grantType = "password",
|
||||||
clientId = "e5cd7e4891bf95d1d19206ce24a7b32e",
|
clientId = "e5cd7e4891bf95d1d19206ce24a7b32e",
|
||||||
userType = "company_user",
|
userType = "company_user",
|
||||||
username = "13051628292",//"ZF16c788632",13699802230,13051628292
|
username = "13699802230",//"ZF16c788632",13699802230,13051628292
|
||||||
password = "YYL5371!"
|
password = "YYL5371!"
|
||||||
};
|
};
|
||||||
image.gameObject.SetActive (true);
|
image.gameObject.SetActive (true);
|
||||||
|
Loading…
Reference in New Issue
Block a user