This commit is contained in:
YangHua 2023-11-23 20:12:48 +08:00
parent 8e893f1e42
commit f609514d96
3 changed files with 11 additions and 5 deletions

View File

@ -32,8 +32,8 @@ Material:
- _dispStrength: 1
- _overBright: 1
m_Colors:
- _AmbientTint: {r: 0, g: 0, b: 0, a: 1}
- _Color: {r: 0.25, g: 0.25, b: 0.25, a: 0.040000003}
- _AmbientTint: {r: 1, g: 1, b: 1, a: 1}
- _Color: {r: 0.5, g: 0.49803922, b: 0.49215686, a: 0.2}
- _GlowColor: {r: 0.5, g: 0.5, b: 0.5, a: 0.5}
- _PrimaryTint: {r: 1, g: 1, b: 1, a: 1}
- _TintColor: {r: 1, g: 1, b: 1, a: 1}

View File

@ -206,6 +206,10 @@ MonoBehaviour:
state:
message:
data: []
currentRoomData:
state:
message:
data: []
--- !u!1 &2132962757
GameObject:
m_ObjectHideFlags: 0
@ -236,7 +240,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
isLinkAgain: 0
serverIP: 192.168.6.63
serverIP: 127.0.0.1
port: 12345
--- !u!4 &2132962759
Transform:

View File

@ -221,6 +221,8 @@ public class GameManager : MonoSingleton<GameManager>
public async void CheckRoomState()
{
RoomState roomState = await AsyncWebReq.Post<RoomState>("http://111.229.30.246:48888/Handler/Practice.ashx?action=updatestate&Id=" + GlobalFlag.roomID + "&state=1", null);
Debug.Log($"<color=red>GamemanagerRoomState={ roomState.message}</color>");
if (roomState.message == "success")
{
GlobalFlag.isStartRehearsing = true;
@ -353,12 +355,12 @@ public class GameManager : MonoSingleton<GameManager>
private void OnDisable()
{
Debug.Log("OnDisable");
Reset();
Leaverroom();
}
private void Reset()
private void Leaverroom()
{
SyncCreateRoom.getroomusersRequset -= OnGetRoomUsers;
SyncCreateRoom.send2roomRequset -= OnRoomInfo;