From ef75988feeaebd442d76fc515d1d5445a8edcb16 Mon Sep 17 00:00:00 2001 From: Abdul Mukheem Shaik <mukheemuddin@gmail.com> Date: Mon, 27 May 2024 23:52:47 +0200 Subject: [PATCH] Proxima UI added --- .../Scenes/SharedSpatialAnchors.unity | 58 +++++++++++++++++++ Assets/SharedSpatialAnchors/Scripts/API.cs | 9 +-- 2 files changed, 63 insertions(+), 4 deletions(-) diff --git a/Assets/SharedSpatialAnchors/Scenes/SharedSpatialAnchors.unity b/Assets/SharedSpatialAnchors/Scenes/SharedSpatialAnchors.unity index 7ef3fc2..c30486f 100644 --- a/Assets/SharedSpatialAnchors/Scenes/SharedSpatialAnchors.unity +++ b/Assets/SharedSpatialAnchors/Scenes/SharedSpatialAnchors.unity @@ -1679,6 +1679,64 @@ Transform: m_Father: {fileID: 1929030171} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1771592182 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1771592184} + - component: {fileID: 1771592183} + m_Layer: 0 + m_Name: Proxima + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1771592183 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1771592182} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: e277581af68d4604da056e460b819656, type: 3} + m_Name: + m_EditorClassIdentifier: + _displayName: TT + _port: 7759 + _password: 123456 + _useHttps: 0 + _certificate: {fileID: 0} + _certificatePassword: + _runOnEnable: 1 + _logBufferSize: 1000 + _instantiateStatusUI: 1 + _instantiateConnectUI: 1 + _dontDestroyOnLoad: 1 + _setRunInBackground: 1 + _serverType: 1 + _serverUrl: +--- !u!4 &1771592184 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1771592182} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 1.3851701, y: 0.9054507, z: -0.015399694} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 8 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1774543903 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/SharedSpatialAnchors/Scripts/API.cs b/Assets/SharedSpatialAnchors/Scripts/API.cs index 087e1f8..9b0aab8 100644 --- a/Assets/SharedSpatialAnchors/Scripts/API.cs +++ b/Assets/SharedSpatialAnchors/Scripts/API.cs @@ -182,6 +182,8 @@ public void ExtractDataFromJson(string json) Debug.Log("Latest WS is - "+latestWS); } } + windTurbineController = windTurbineWithMap.transform.GetChild(0).gameObject; + windTurbineControllerScript = windTurbineController.GetComponent<Windturbine>(); photonView = PhotonView.Get(this); photonView.RPC("RPC_GreenButtonClick", RpcTarget.All,windDirectionInDirectionTerms,LatestT+" C","Kista",latestWS+" m/s",true); } @@ -196,11 +198,10 @@ public void ExtractDataFromJson(string json) windSpeedValue.SetText(windSpeed); turn_WT_on_Y_Axis = turn_WT_on_Y_Axis_val; // flag set to true so that WT can rotate on it's Y axis. - /* - windTurbineController = windTurbineWithMap.transform.GetChild(0).gameObject; - windTurbineControllerScript = windTurbineController.GetComponent<Windturbine>(); - windTurbineControllerScript.WT_TurnOnIts_Y_Axis();*/ + Debug.Log("Flag value to turn the Y Axis:" + turn_WT_on_Y_Axis); + + windTurbineControllerScript.WT_TurnOnIts_Y_Axis(); } [PunRPC] public void RPC_VoltageUpdate(String voltageGenerated)