This commit is contained in:
yulong 2023-11-24 16:01:31 +08:00
parent 154d3d1c30
commit 84cb3d4a98
7 changed files with 640 additions and 55 deletions

View File

@ -48,7 +48,7 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _GIntensity: 0.1
- _GIntensity: 0
- _Intensity: 0
- _SIntensity: 1
- _perturbation: 0.405

View File

@ -33,7 +33,7 @@ Material:
- _overBright: 1
m_Colors:
- _AmbientTint: {r: 1, g: 1, b: 1, a: 1}
- _Color: {r: 0, g: 0, b: 0, 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

@ -294,7 +294,7 @@ public class Scenariopage : MonoBehaviour
//调用接口
StartCoroutine(Post1(Url_Action, (bol, str) =>
{
Debug.LogError(str);
Debug.Log(str);
Scenario(bol, str);
}));
Scenario();//想定文件
@ -359,7 +359,7 @@ public class Scenariopage : MonoBehaviour
if (ison==true)
{
quantity7 = index;
Debug.LogError(quantity7);
Debug.Log(quantity7);
}
});
}
@ -471,7 +471,7 @@ public class Scenariopage : MonoBehaviour
{
if (bol)
{
Debug.LogError(str);
Debug.Log(str);
weaponitemone1 = Newtonsoft.Json.JsonConvert.DeserializeObject<Weaponitemone>(str);
}
if (weaponitemone1.state)
@ -543,25 +543,25 @@ public class Scenariopage : MonoBehaviour
}
switch (uavnamelist2[6])
{
case 1:
case 0:
toggle1.isOn = true;
break;
case 2:
case 1:
toggle2.isOn = true;
break;
case 3:
case 2:
toggle3.isOn = true;
break;
case 4:
case 3:
toggle4.isOn = true;
break;
case 5:
case 4:
toggle5.isOn = true;
break;
case 6:
case 5:
toggle6.isOn = true;
break;
case 7:
case 6:
toggle7.isOn = true;
break;
default:
@ -569,10 +569,10 @@ public class Scenariopage : MonoBehaviour
}
switch (uavnamelist2[7])
{
case 1:
case 0:
toggle8.isOn = true;
break;
case 2:
case 1:
toggle9.isOn = true;
break;
default:
@ -686,7 +686,7 @@ public class Scenariopage : MonoBehaviour
{
if (bol)
{
Debug.LogError(str);
Debug.Log(str);
weaponitemone1 = Newtonsoft.Json.JsonConvert.DeserializeObject<Weaponitemone>(str);
}
if (weaponitemone1.state)
@ -727,10 +727,10 @@ public class Scenariopage : MonoBehaviour
}
switch (wirelesslist2[1])
{
case 1:
case 0:
Toggle_Drive.isOn = true;
break;
case 2:
case 1:
Toggle_Crash.isOn = true;
break;
default:
@ -827,7 +827,7 @@ public class Scenariopage : MonoBehaviour
{
if (bol)
{
Debug.LogError(str);
Debug.Log(str);
weaponitemone1 = Newtonsoft.Json.JsonConvert.DeserializeObject<Weaponitemone>(str);
}
if (weaponitemone1.state)
@ -912,7 +912,7 @@ public class Scenariopage : MonoBehaviour
{
if (bol)
{
Debug.LogError(str);
Debug.Log(str);
weaponitemone1 = Newtonsoft.Json.JsonConvert.DeserializeObject<Weaponitemone>(str);
}
if (weaponitemone1.state)
@ -1012,7 +1012,7 @@ public class Scenariopage : MonoBehaviour
power = Dropdown_power.value;
Radar();//雷达页面滑动条显示
Frequency(Dropdown_frequency.value);//干扰频率的下拉框
Power();//功率下拉选项框
Disturb();//干扰页面的角度和距离
Swarmdrone();//蜂群无人机页面滑动条
Laer();//激光火炮控制频台面板
@ -1045,10 +1045,7 @@ public class Scenariopage : MonoBehaviour
distance_text.text = Slider_distance.value.ToString("0") + "km";
}
private void Power()
{
Debug.Log(power_text.text);
}
private void Frequency(int value)
{
@ -1128,7 +1125,7 @@ public class Scenariopage : MonoBehaviour
{
if (bol)
{
Debug.LogError(str);
Debug.Log(str);
weaponitemone1 = Newtonsoft.Json.JsonConvert.DeserializeObject<Weaponitemone>(str);
}
if (weaponitemone1.state)
@ -1157,7 +1154,7 @@ public class Scenariopage : MonoBehaviour
{
if (bol)
{
Debug.LogError(str);
Debug.Log(str);
weaponitemone1 = Newtonsoft.Json.JsonConvert.DeserializeObject<Weaponitemone>(str);
}
if (weaponitemone1.state)
@ -1186,7 +1183,7 @@ public class Scenariopage : MonoBehaviour
{
if (bol)
{
Debug.LogError(str);
Debug.Log(str);
weaponitemone1 = Newtonsoft.Json.JsonConvert.DeserializeObject<Weaponitemone>(str);
}
if (weaponitemone1.state)
@ -1215,7 +1212,7 @@ public class Scenariopage : MonoBehaviour
{
if (bol)
{
Debug.LogError(str);
Debug.Log(str);
weaponitemone1 = Newtonsoft.Json.JsonConvert.DeserializeObject<Weaponitemone>(str);
}
if (weaponitemone1.state)
@ -1403,7 +1400,10 @@ public class Scenariopage : MonoBehaviour
}
}
}
Passbyvalue();//把场景中天气插件的值传给接口
if (Id.Length>0)
{
Passbyvalue();//把场景中天气插件的值传给接口
}
//Modelitem();//把模型路径和对应的位置值传给接口
if (Id.Length > 1)
{
@ -1491,9 +1491,9 @@ public class Scenariopage : MonoBehaviour
}
datalist.Add(data);
}
Debug.LogError(datalist);
Debug.Log(datalist);
string datas = Newtonsoft.Json.JsonConvert.SerializeObject(datalist);
Debug.LogError(datas);
Debug.Log(datas);
Dictionary<string, string> dic = new Dictionary<string, string>();
//dic.Add("action", "adddevice");
dic.Add("think_id", "" + Id + "");
@ -1502,8 +1502,8 @@ public class Scenariopage : MonoBehaviour
}
public void getInfo2(bool bol, string str)
{
Debug.LogError(bol);
Debug.LogError(str);
Debug.Log(bol);
Debug.Log(str);
Chaxun();//查询接口
}
@ -1724,7 +1724,7 @@ public class Scenariopage : MonoBehaviour
dataItem1s.Add(dataItem1);
}
string dataitem = Newtonsoft.Json.JsonConvert.SerializeObject(dataItem1s);
Debug.LogError(dataitem);
Debug.Log(dataitem);
Dictionary<string, string> map = new Dictionary<string, string>();
map.Add("data", dataitem);
StartCoroutine(PostData(Url_updatedevice, map, getInfo1));//协程调用网络通信
@ -1747,8 +1747,8 @@ public class Scenariopage : MonoBehaviour
}
public void Model(bool s, string str)
{
Debug.LogError(s);
Debug.LogError(str);
Debug.Log(s);
Debug.Log(str);
}
public static IEnumerator PostData1(string url, Dictionary<string, string> model, System.Action<bool, string> action)
{
@ -2027,12 +2027,7 @@ public class Scenariopage : MonoBehaviour
{
if (year_text.text.Length >= 1 || auto_text.text.Length >= 1)
{
Rain(tenkokuModule.weather_RainAmt);
Snow(tenkokuModule.weather_SnowAmt.ToString());
WindAmt(tenkokuModule.weather_WindAmt.ToString("f1"));
WindDir(tenkokuModule.weather_WindDir);
//Debug.LogError(tenkokuModule.weather_WindAmt);
//tmie = year_text.text + " " + month_text.text + " " + day_text.text + " " + when_text.text;
if (kaiguan == false)
{
tmie = auto_text.text;
@ -2041,6 +2036,13 @@ public class Scenariopage : MonoBehaviour
{
tmie = year_text.text + month_text.text + day_text.text + when_text.text;
}
Rain(tenkokuModule.weather_RainAmt);
Snow(tenkokuModule.weather_SnowAmt.ToString());
WindAmt(tenkokuModule.weather_WindAmt.ToString("f1"));
WindDir(tenkokuModule.weather_WindDir);
//Debug.LogError(tenkokuModule.weather_WindAmt);
//tmie = year_text.text + " " + month_text.text + " " + day_text.text + " " + when_text.text;
environment_configuration1.gameObject.SetActive(false);
}
@ -2058,8 +2060,7 @@ public class Scenariopage : MonoBehaviour
}
void Passbyvalue()
{
Environment Environment = new Environment();//需要传值对应类
//把需要传的值对象参数对应
Environment.Time = "" + tmie + "";
@ -2069,7 +2070,7 @@ public class Scenariopage : MonoBehaviour
Environment.WindDir = "" + winddir + "";
Environment.Light = "" + Slider.value.ToString("0") + "";
string res = JsonMapper.ToJson(Environment);//利用插件LitJson将类对象转为json
Debug.LogError(res);
Debug.Log(res);
Dictionary<string, string> formDic = new Dictionary<string, string>();//用字典保存到对应的想定id里面
formDic.Add("Id", "" + Id + "");
formDic.Add("data", res);
@ -2079,8 +2080,8 @@ public class Scenariopage : MonoBehaviour
void GetInfo(bool b, string s)
{
Debug.LogError(b);
Debug.LogError(s);
Debug.Log(b);
Debug.Log(s);
Modelitem();//把模型路径和对应的位置值传给接口
}
@ -2099,7 +2100,7 @@ public class Scenariopage : MonoBehaviour
yield return request.SendWebRequest();//发送请求
if (request.isNetworkError || request.isHttpError)
{
print("cannot get data:" + request.responseCode);
Debug.Log("cannot get data:" + request.responseCode);
action(false, null);
}
else
@ -2340,8 +2341,7 @@ public class Scenariopage : MonoBehaviour
}
//Debug.LogError(windDrop.value);
tenkokuModule.weather_WindAmt = Mathf.Lerp(0.1f, 1.1f, tempEintAmt);
Debug.Log(tenkokuModule.weather_WindAmt);
}
public void SetWindDirection()

View File

@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 1113159741}
m_IndirectSpecularColor: {r: 0.16219163, g: 0.30625746, b: 0.67076117, a: 1}
m_IndirectSpecularColor: {r: 0.16302592, g: 0.30598372, b: 0.66365844, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
@ -6650,6 +6650,7 @@ MonoBehaviour:
isDragWRJ: 1
deviceID:
isPlayer: 0
isThinck: 0
--- !u!1 &147647007
GameObject:
m_ObjectHideFlags: 0
@ -6745,6 +6746,7 @@ RectTransform:
- {fileID: 284678593}
- {fileID: 729007801}
- {fileID: 754191142}
- {fileID: 1719983406}
m_Father: {fileID: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -13129,6 +13131,130 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 289104241}
m_CullTransparentMesh: 0
--- !u!1001 &290821409
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 1719983406}
m_Modifications:
- target: {fileID: 3482613385838459546, guid: e0ada0eb22f249c4e85e622025cdc5c1,
type: 3}
propertyPath: m_Name
value: DirectorPanel
objectReference: {fileID: 0}
- target: {fileID: 3482613385838459546, guid: e0ada0eb22f249c4e85e622025cdc5c1,
type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3482613385838459547, guid: e0ada0eb22f249c4e85e622025cdc5c1,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3482613385838459547, guid: e0ada0eb22f249c4e85e622025cdc5c1,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3482613385838459547, guid: e0ada0eb22f249c4e85e622025cdc5c1,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3482613385838459547, guid: e0ada0eb22f249c4e85e622025cdc5c1,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3482613385838459547, guid: e0ada0eb22f249c4e85e622025cdc5c1,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3482613385838459547, guid: e0ada0eb22f249c4e85e622025cdc5c1,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3482613385838459547, guid: e0ada0eb22f249c4e85e622025cdc5c1,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3482613385838459547, guid: e0ada0eb22f249c4e85e622025cdc5c1,
type: 3}
propertyPath: m_RootOrder
value: 2
objectReference: {fileID: 0}
- target: {fileID: 3482613385838459547, guid: e0ada0eb22f249c4e85e622025cdc5c1,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3482613385838459547, guid: e0ada0eb22f249c4e85e622025cdc5c1,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3482613385838459547, guid: e0ada0eb22f249c4e85e622025cdc5c1,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3482613385838459547, guid: e0ada0eb22f249c4e85e622025cdc5c1,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3482613385838459547, guid: e0ada0eb22f249c4e85e622025cdc5c1,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3482613385838459547, guid: e0ada0eb22f249c4e85e622025cdc5c1,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3482613385838459547, guid: e0ada0eb22f249c4e85e622025cdc5c1,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3482613385838459547, guid: e0ada0eb22f249c4e85e622025cdc5c1,
type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3482613385838459547, guid: e0ada0eb22f249c4e85e622025cdc5c1,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3482613385838459547, guid: e0ada0eb22f249c4e85e622025cdc5c1,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3482613385838459547, guid: e0ada0eb22f249c4e85e622025cdc5c1,
type: 3}
propertyPath: m_AnchorMax.y
value: 0.92218524
objectReference: {fileID: 0}
- target: {fileID: 3482613385838459547, guid: e0ada0eb22f249c4e85e622025cdc5c1,
type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 3482613385838459547, guid: e0ada0eb22f249c4e85e622025cdc5c1,
type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: e0ada0eb22f249c4e85e622025cdc5c1, type: 3}
--- !u!1 &293106569
GameObject:
m_ObjectHideFlags: 0
@ -43754,6 +43880,225 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 916237430}
m_CullTransparentMesh: 0
--- !u!1001 &920900189
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 1719983406}
m_Modifications:
- target: {fileID: 489471026206254824, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 489471026206254824, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 489471026614462621, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 489471026614462621, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 489471026862805693, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 489471026862805693, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 489471027038846056, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 489471027038846056, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 489471027272641026, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 489471027272641026, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 489471027479718637, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 489471027479718637, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 489471027619644669, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 489471027619644669, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 489471027692358873, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 489471027692358873, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 489471027869101326, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 489471027869101326, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4485532911906570653, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4485532911906570653, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4485532913520624914, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4485532913520624914, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4485532913520624914, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4485532913520624914, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4485532913520624914, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4485532913520624914, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4485532913520624914, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4485532913520624914, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4485532913520624914, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4485532913520624914, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4485532913520624914, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4485532913520624914, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4485532913520624914, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4485532913520624914, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4485532913520624914, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4485532913520624914, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4485532913520624914, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4485532913520624914, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4485532913520624914, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_AnchorMax.y
value: 0.92218524
objectReference: {fileID: 0}
- target: {fileID: 4485532913520624914, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4485532913520624914, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4485532913520624925, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
propertyPath: m_Name
value: ZonghePanel
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: e4ab650712d498f468e796b8095875b0, type: 3}
--- !u!1 &921893236
GameObject:
m_ObjectHideFlags: 0
@ -46733,6 +47078,12 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1243387091}
m_CullTransparentMesh: 0
--- !u!224 &1247294902 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 4485532913520624914, guid: e4ab650712d498f468e796b8095875b0,
type: 3}
m_PrefabInstance: {fileID: 920900189}
m_PrefabAsset: {fileID: 0}
--- !u!114 &1251292192
MonoBehaviour:
m_ObjectHideFlags: 0
@ -48290,6 +48641,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
playerTransformPrefab: {fileID: 8716064937965754113, guid: efe92e3dbc7b77747979793b50eb6456,
type: 3}
currentSpt: {fileID: 0}
spawnPos: {fileID: 1618372688}
userIds:
tenkokuModule: {fileID: 1820978573}
@ -48301,6 +48653,7 @@ MonoBehaviour:
wxdDrag: {fileID: 3438159622238491400, guid: 57c5ff12282ea37439abe26b94bc93b3, type: 3}
Teacher: {fileID: 754191141}
student: {fileID: 1862065805184089353}
posture: {fileID: 1719983405}
players: []
--- !u!4 &1436809530
Transform:
@ -48415,6 +48768,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
devices: []
isOnlyOne: 1
--- !u!1 &1444599844
GameObject:
m_ObjectHideFlags: 0
@ -59156,6 +59510,179 @@ MonoBehaviour:
off2_botn: {fileID: 1949154258}
verify2_botn: {fileID: 436663175}
cancel2_botn: {fileID: 2084742555}
--- !u!1001 &1586360840
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 1719983406}
m_Modifications:
- target: {fileID: 2042454461, guid: c3d92615a09597d46aa740923029c15d, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 353698336453160051, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 353698336453160051, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 728822413801078152, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 728822413801078152, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1693121673111326432, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1693121673111326432, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3691389793902075663, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_Name
value: TaishiPanel
objectReference: {fileID: 0}
- target: {fileID: 5302966787058760566, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5302966787058760566, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5302966787058760566, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5302966787058760566, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 5302966787058760566, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 5302966787058760566, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 5302966787058760566, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5302966787058760566, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5302966787058760566, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5302966787058760566, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5302966787058760566, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5302966787058760566, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5302966787058760566, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5302966787058760566, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5302966787058760566, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5302966787058760566, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5302966787058760566, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5302966787058760566, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5302966787058760566, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5302966787058760566, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 5302966787058760566, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 6273397859833311949, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6273397859833311949, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8851741047579415798, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8851741047579415798, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: c3d92615a09597d46aa740923029c15d, type: 3}
--- !u!1 &1611038947 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 6526421926270906332, guid: 7bd4dfc33fe8c1d40b08d5df6ce78e10,
@ -60395,6 +60922,12 @@ RectTransform:
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0}
--- !u!224 &1701555576 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 5302966787058760566, guid: c3d92615a09597d46aa740923029c15d,
type: 3}
m_PrefabInstance: {fileID: 1586360840}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1709180684
GameObject:
m_ObjectHideFlags: 0
@ -60673,6 +61206,44 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1718797254}
m_CullTransparentMesh: 0
--- !u!1 &1719983405
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1719983406}
m_Layer: 0
m_Name: NormalRoot
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!224 &1719983406
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1719983405}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 1701555576}
- {fileID: 1247294902}
- {fileID: 1746049548}
m_Father: {fileID: 147647011}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1720944765
GameObject:
m_ObjectHideFlags: 0
@ -60901,6 +61472,12 @@ MonoBehaviour:
m_Spacing: {x: 10, y: 30}
m_Constraint: 0
m_ConstraintCount: 2
--- !u!224 &1746049548 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 3482613385838459547, guid: e0ada0eb22f249c4e85e622025cdc5c1,
type: 3}
m_PrefabInstance: {fileID: 290821409}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1757586727
GameObject:
m_ObjectHideFlags: 0
@ -62205,7 +62782,7 @@ MonoBehaviour:
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
randSeed: 84043625
randSeed: 450345031
isDoingTransition: 0
minimumHeight: 0
--- !u!114 &1820978574

View File

@ -97090,7 +97090,7 @@ MonoBehaviour:
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
randSeed: 442318296
randSeed: 446342828
isDoingTransition: 0
minimumHeight: 0
--- !u!114 &1820978574

View File

@ -206,7 +206,7 @@ MonoBehaviour:
state:
message:
data: []
currentRoomData:
roomdata:
state:
message:
data: []
@ -240,7 +240,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
isLinkAgain: 0
serverIP: 192.168.6.63
serverIP: 192.168.6.15
port: 12345
--- !u!4 &2132962759
Transform:

View File

@ -26,6 +26,7 @@ public class GameManager : MonoSingleton<GameManager>
public DragController wxdDrag;
public GameObject Teacher;
public GameObject student;
public GameObject posture;
public System.Collections.Generic.List<SyncPlayerTransform> players = new System.Collections.Generic.List<SyncPlayerTransform>();
// Start is called before the first frame update
private void Awake()
@ -101,6 +102,13 @@ public class GameManager : MonoSingleton<GameManager>
student.gameObject.SetActive(false);
spt.GetComponent<Camera>().cullingMask = -1;
}
if (GlobalFlag.currentUser.role_code=="05")
{
Teacher.gameObject.SetActive(false);
student.gameObject.SetActive(false);
posture.gameObject.SetActive(true);
spt.GetComponent<Camera>().cullingMask = -1;
}
userIds.Add(ulong.Parse(GlobalFlag.currentUser.user_id));
tenkokuModule.mainCamera = spt.transform;