This commit is contained in:
parent
8a06a15be6
commit
7cc9db8d7d
|
@ -14,10 +14,12 @@ public class PostureController : MonoBehaviour
|
||||||
public DeviceBtnItem deviceBtnItem;
|
public DeviceBtnItem deviceBtnItem;
|
||||||
public RawImage redShowImage;
|
public RawImage redShowImage;
|
||||||
public RawImage blueShowImage;
|
public RawImage blueShowImage;
|
||||||
|
public DroneViewDisplay droneViewDisplay;
|
||||||
// Start is called before the first frame update
|
// Start is called before the first frame update
|
||||||
void Awake()
|
void Awake()
|
||||||
{
|
{
|
||||||
deviceManager = DeviceManager.Instance;
|
deviceManager = DeviceManager.Instance;
|
||||||
|
droneViewDisplay = DroneViewDisplay.Instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update is called once per frame
|
// Update is called once per frame
|
||||||
|
@ -74,11 +76,12 @@ public class PostureController : MonoBehaviour
|
||||||
if (string.IsNullOrEmpty(id)) return;
|
if (string.IsNullOrEmpty(id)) return;
|
||||||
if (redOrBlue == 0)
|
if (redOrBlue == 0)
|
||||||
{
|
{
|
||||||
redShowImage.texture = DroneViewDisplay.Instance.renderTextureTo(id);
|
RenderTexture t = droneViewDisplay.renderTextureTo(id);
|
||||||
|
redShowImage.texture = t;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
blueShowImage.texture = DroneViewDisplay.Instance.renderTextureTo(id);
|
blueShowImage.texture = droneViewDisplay.renderTextureTo(id);
|
||||||
|
|
||||||
}
|
}
|
||||||
Debug.Log(id);
|
Debug.Log(id);
|
||||||
|
|
Loading…
Reference in New Issue