Compare commits

..

No commits in common. "e4af0fdece0ecfa8be0ac810aef5720d0491e4c3" and "0a618fea1e065c230591c2e44241691bf768b3cb" have entirely different histories.

4 changed files with 82 additions and 62 deletions

View File

@ -9424,8 +9424,8 @@ BoxCollider:
m_ProvidesContacts: 0 m_ProvidesContacts: 0
m_Enabled: 1 m_Enabled: 1
serializedVersion: 3 serializedVersion: 3
m_Size: {x: 0.005161286, y: 0.0053709717, z: 0.005163432} m_Size: {x: 0.005161286, y: 0.0018310574, z: 0.005163432}
m_Center: {x: 0.0000019068073, y: 0.0026854845, z: -0.00000011960203} m_Center: {x: 0.0000019071158, y: 0.0009155273, z: -0.00000011955854}
--- !u!1 &392085716 --- !u!1 &392085716
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -22524,10 +22524,20 @@ MonoBehaviour:
returnButton: {fileID: 635778594} returnButton: {fileID: 635778594}
originalPosition: {x: 0, y: 0, z: 0} originalPosition: {x: 0, y: 0, z: 0}
originalRotation: {x: 0, y: 0, z: 0, w: 0} originalRotation: {x: 0, y: 0, z: 0, w: 0}
- toolObject: {fileID: 274807175}
returnButton: {fileID: 108426143}
originalPosition: {x: 0, y: 0, z: 0}
originalRotation: {x: 0, y: 0, z: 0, w: 0}
- toolObject: {fileID: 1498050634} - toolObject: {fileID: 1498050634}
returnButton: {fileID: 478745220} returnButton: {fileID: 478745220}
originalPosition: {x: 0, y: 0, z: 0} originalPosition: {x: 0, y: 0, z: 0}
originalRotation: {x: 0, y: 0, z: 0, w: 0} originalRotation: {x: 0, y: 0, z: 0, w: 0}
onladderTools:
- {fileID: 945637454}
- {fileID: 724345513}
- {fileID: 798421952}
- {fileID: 274807175}
- {fileID: 1498050634}
PlayercameraTrans: {fileID: 1035373398} PlayercameraTrans: {fileID: 1035373398}
Fieldobservation: {fileID: 616989521} Fieldobservation: {fileID: 616989521}
--- !u!4 &1039753534 --- !u!4 &1039753534
@ -23194,8 +23204,8 @@ BoxCollider:
m_ProvidesContacts: 0 m_ProvidesContacts: 0
m_Enabled: 1 m_Enabled: 1
serializedVersion: 3 serializedVersion: 3
m_Size: {x: 0.005161286, y: 0.005798218, z: 0.005163432} m_Size: {x: 0.005161286, y: 0.0018310574, z: 0.005163432}
m_Center: {x: 0.0000019067827, y: 0.0028991075, z: -0.00000011961477} m_Center: {x: 0.0000019071158, y: 0.0009155273, z: -0.00000011955854}
--- !u!1 &1074012515 --- !u!1 &1074012515
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

@ -3739,8 +3739,8 @@ BoxCollider:
m_ProvidesContacts: 0 m_ProvidesContacts: 0
m_Enabled: 1 m_Enabled: 1
serializedVersion: 3 serializedVersion: 3
m_Size: {x: 0.005161286, y: 0.0092161875, z: 0.005163432} m_Size: {x: 0.005161286, y: 0.0018310574, z: 0.005163432}
m_Center: {x: 0.0000019065862, y: 0.004608092, z: -0.00000011971663} m_Center: {x: 0.0000019071158, y: 0.0009155273, z: -0.00000011955854}
--- !u!4 &177045583 stripped --- !u!4 &177045583 stripped
Transform: Transform:
m_CorrespondingSourceObject: {fileID: 8378556726591945539, guid: 8a244cdd2f00e534aadd2512c3bbfda1, type: 3} m_CorrespondingSourceObject: {fileID: 8378556726591945539, guid: 8a244cdd2f00e534aadd2512c3bbfda1, type: 3}
@ -5387,8 +5387,8 @@ BoxCollider:
m_ProvidesContacts: 0 m_ProvidesContacts: 0
m_Enabled: 1 m_Enabled: 1
serializedVersion: 3 serializedVersion: 3
m_Size: {x: 0.005161286, y: 0.009460328, z: 0.005163432} m_Size: {x: 0.005161286, y: 0.0018310574, z: 0.005163432}
m_Center: {x: 0.0000019065723, y: 0.004730162, z: -0.00000011972391} m_Center: {x: 0.0000019071158, y: 0.0009155273, z: -0.00000011955854}
--- !u!1 &286447742 --- !u!1 &286447742
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -28279,10 +28279,20 @@ MonoBehaviour:
returnButton: {fileID: 1869768458} returnButton: {fileID: 1869768458}
originalPosition: {x: 0, y: 0, z: 0} originalPosition: {x: 0, y: 0, z: 0}
originalRotation: {x: 0, y: 0, z: 0, w: 0} originalRotation: {x: 0, y: 0, z: 0, w: 0}
- toolObject: {fileID: 1485260145}
returnButton: {fileID: 156402808}
originalPosition: {x: 0, y: 0, z: 0}
originalRotation: {x: 0, y: 0, z: 0, w: 0}
- toolObject: {fileID: 2018635915} - toolObject: {fileID: 2018635915}
returnButton: {fileID: 587729411} returnButton: {fileID: 587729411}
originalPosition: {x: 0, y: 0, z: 0} originalPosition: {x: 0, y: 0, z: 0}
originalRotation: {x: 0, y: 0, z: 0, w: 0} originalRotation: {x: 0, y: 0, z: 0, w: 0}
onladderTools:
- {fileID: 4441233656616589336}
- {fileID: 1112936940}
- {fileID: 588400109}
- {fileID: 1485260145}
- {fileID: 2018635915}
PlayercameraTrans: {fileID: 6121626523118833240} PlayercameraTrans: {fileID: 6121626523118833240}
Fieldobservation: {fileID: 6121626523908351180} Fieldobservation: {fileID: 6121626523908351180}
--- !u!114 &1505150134 --- !u!114 &1505150134

View File

@ -116,54 +116,54 @@ public class ToolManager : MonoBehaviour
} }
} }
} }
//public void HandleStringEvent(string message) public void HandleStringEvent(string message)
//{ {
// if (generateAreaScript.IsPlayerInArea()) if (generateAreaScript.IsPlayerInArea())
// { {
// if (message == "炅綾") if (message == "炅綾")
// { {
// Tool[0].gameObject.SetActive(true); Tool[0].gameObject.SetActive(true);
// Ladder.instance.Init(); Ladder.instance.Init();
// } }
// if (message == "묏鱗聯") if (message == "묏鱗聯")
// { {
// Tool[1].gameObject.SetActive(true); Tool[1].gameObject.SetActive(true);
// } }
// if (message == "괆窟풂") if (message == "괆窟풂")
// { {
// Tool[2].gameObject.SetActive(true); Tool[2].gameObject.SetActive(true);
// RetractBtn[0].gameObject.SetActive(true); RetractBtn[0].gameObject.SetActive(true);
// } }
// if (message == "駱든궝") if (message == "駱든궝")
// { {
// Tool[3].gameObject.SetActive(true); Tool[3].gameObject.SetActive(true);
// RetractBtn[1].gameObject.SetActive(true); RetractBtn[1].gameObject.SetActive(true);
// } }
// if (message == "쭁介독") if (message == "쭁介독")
// { {
// Tool[4].gameObject.SetActive(true); Tool[4].gameObject.SetActive(true);
// RetractBtn[2].gameObject.SetActive(true); RetractBtn[2].gameObject.SetActive(true);
// } }
// if (message == "없鍍스던") if (message == "없鍍스던")
// { {
// Tool[5].gameObject.SetActive(true); Tool[5].gameObject.SetActive(true);
// RetractBtn[3].gameObject.SetActive(true); RetractBtn[3].gameObject.SetActive(true);
// } }
// if (message == "l謹섞櫓포") if (message == "l謹섞櫓포")
// { {
// Tool[6].gameObject.SetActive(true); Tool[6].gameObject.SetActive(true);
// RetractBtn[4].gameObject.SetActive(true); RetractBtn[4].gameObject.SetActive(true);
// } }
// if (message == "분陋룐丹") if (message == "분陋룐丹")
// { {
// Tool[7].gameObject.SetActive(true); Tool[7].gameObject.SetActive(true);
// RetractBtn[5].gameObject.SetActive(true); RetractBtn[5].gameObject.SetActive(true);
// } }
// Debug.Log("Received message: " + message); Debug.Log("Received message: " + message);
// } }
//} }
public void HandleStringEvents(string message) public void HandleStringEvents(string message)
{ {
if (generateAreaScript.IsPlayerInArea()) if (generateAreaScript.IsPlayerInArea())

View File

@ -32,7 +32,7 @@ public class TooslManager : MonoBehaviour
/// <summary> /// <summary>
/// 在梯子上使用的工具 /// 在梯子上使用的工具
/// </summary> /// </summary>
// public GameObject[] onladderTools; public GameObject[] onladderTools;
public Transform PlayercameraTrans; public Transform PlayercameraTrans;
@ -100,11 +100,11 @@ public class TooslManager : MonoBehaviour
// tool.SetActive(true); // tool.SetActive(true);
// } // }
//} //}
//void ToggleTools(bool activate) void ToggleTools(bool activate)
//{ {
// foreach (GameObject tool in onladderTools) foreach (GameObject tool in onladderTools)
// { {
// tool.SetActive(activate); tool.SetActive(activate);
// } }
//} }
} }