mirror of
https://github.com/Mukheem/TwinTurbine.git
synced 2025-05-04 20:00:34 +02:00
streaming isButtonpressed variable as well
Co-Authored-By: ZeinabBF <145973209+ZeinabBF@users.noreply.github.com>
This commit is contained in:
parent
5c387c5f99
commit
36fdae0a6d
@ -47,7 +47,7 @@ public class API : MonoBehaviourPunCallbacks, IPunObservable
|
|||||||
public TextMeshProUGUI windSpeedValue;
|
public TextMeshProUGUI windSpeedValue;
|
||||||
private float LatestT;
|
private float LatestT;
|
||||||
public float latestWD = 0.0f;
|
public float latestWD = 0.0f;
|
||||||
public float latestWS;
|
public float latestWS = 0.01f;
|
||||||
private String windDirectionInDirectionTerms;
|
private String windDirectionInDirectionTerms;
|
||||||
private string unit;
|
private string unit;
|
||||||
private GameObject webSocketController;
|
private GameObject webSocketController;
|
||||||
@ -220,10 +220,12 @@ public void ExtractDataFromJson(string json)
|
|||||||
if (stream.IsWriting)
|
if (stream.IsWriting)
|
||||||
{
|
{
|
||||||
stream.SendNext(turn_WT_on_Y_Axis);
|
stream.SendNext(turn_WT_on_Y_Axis);
|
||||||
|
stream.SendNext(isButtonPressed);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
turn_WT_on_Y_Axis = (bool)stream.ReceiveNext();
|
turn_WT_on_Y_Axis = (bool)stream.ReceiveNext();
|
||||||
|
isButtonPressed = (bool)stream.ReceiveNext();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user