Merge branch 'master' of http://git.umayle.com:2023/yulong/NewN_UAVPlane
This commit is contained in:
commit
a3e5d273f7
|
@ -16,3 +16,4 @@
|
||||||
/UniTask.Addressables.csproj
|
/UniTask.Addressables.csproj
|
||||||
/UniTask.csproj
|
/UniTask.csproj
|
||||||
/Build
|
/Build
|
||||||
|
/Bulid
|
||||||
|
|
|
@ -32,8 +32,8 @@ Material:
|
||||||
- _dispStrength: 1
|
- _dispStrength: 1
|
||||||
- _overBright: 1
|
- _overBright: 1
|
||||||
m_Colors:
|
m_Colors:
|
||||||
- _AmbientTint: {r: 1, g: 1, b: 1, a: 1}
|
- _AmbientTint: {r: 0, g: 0, b: 0, a: 1}
|
||||||
- _Color: {r: 0.5, g: 0.49803922, b: 0.49215686, a: 0.2}
|
- _Color: {r: 0.25, g: 0.25, b: 0.25, a: 0.040000003}
|
||||||
- _GlowColor: {r: 0.5, g: 0.5, b: 0.5, a: 0.5}
|
- _GlowColor: {r: 0.5, g: 0.5, b: 0.5, a: 0.5}
|
||||||
- _PrimaryTint: {r: 1, g: 1, b: 1, a: 1}
|
- _PrimaryTint: {r: 1, g: 1, b: 1, a: 1}
|
||||||
- _TintColor: {r: 1, g: 1, b: 1, a: 1}
|
- _TintColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
|
|
@ -31,6 +31,8 @@ public class PostureController : MonoBehaviour
|
||||||
|
|
||||||
private void OnEnable()
|
private void OnEnable()
|
||||||
{
|
{
|
||||||
|
redShowImage.gameObject.SetActive(false);
|
||||||
|
blueShowImage.gameObject.SetActive(false);
|
||||||
GetSceneInfo();
|
GetSceneInfo();
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -118,14 +120,21 @@ public class PostureController : MonoBehaviour
|
||||||
|
|
||||||
private void OnDeviceBtn(string id, int redOrBlue)
|
private void OnDeviceBtn(string id, int redOrBlue)
|
||||||
{
|
{
|
||||||
if (droneViewDisplay.renderTextureTo(id) == null) return;
|
if (droneViewDisplay.renderTextureTo(id) == null)
|
||||||
|
{
|
||||||
|
redShowImage.gameObject.SetActive(false);
|
||||||
|
blueShowImage.gameObject.SetActive(false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (string.IsNullOrEmpty(id)) return;
|
if (string.IsNullOrEmpty(id)) return;
|
||||||
if (redOrBlue == 0)
|
if (redOrBlue == 0)
|
||||||
{
|
{
|
||||||
|
redShowImage.gameObject.SetActive(true);
|
||||||
redShowImage.texture = droneViewDisplay.renderTextureTo(id);
|
redShowImage.texture = droneViewDisplay.renderTextureTo(id);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
blueShowImage.gameObject.SetActive(true);
|
||||||
blueShowImage.texture = droneViewDisplay.renderTextureTo(id);
|
blueShowImage.texture = droneViewDisplay.renderTextureTo(id);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -176,7 +176,15 @@ public class DroneViewDisplay : MonoSingleton<DroneViewDisplay>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public RenderTexture renderTextureTo(string deviceID)
|
public RenderTexture renderTextureTo(string deviceID)
|
||||||
{
|
{
|
||||||
RenderTexture radioAngleView = renderTextures.Find(x => x.name == deviceID);
|
RenderTexture radioAngleView = null;
|
||||||
|
for (int i = 0; i < renderTextures.Count; i++)
|
||||||
|
{
|
||||||
|
if(renderTextures[i].name == deviceID)
|
||||||
|
{
|
||||||
|
radioAngleView = renderTextures[i];
|
||||||
|
return radioAngleView;
|
||||||
|
}
|
||||||
|
}
|
||||||
return radioAngleView;
|
return radioAngleView;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -91,7 +91,7 @@ PlayerSettings:
|
||||||
xboxEnableFitness: 0
|
xboxEnableFitness: 0
|
||||||
visibleInBackground: 1
|
visibleInBackground: 1
|
||||||
allowFullscreenSwitch: 1
|
allowFullscreenSwitch: 1
|
||||||
fullscreenMode: 2
|
fullscreenMode: 3
|
||||||
xboxSpeechDB: 0
|
xboxSpeechDB: 0
|
||||||
xboxEnableHeadOrientation: 0
|
xboxEnableHeadOrientation: 0
|
||||||
xboxEnableGuest: 0
|
xboxEnableGuest: 0
|
||||||
|
|
Loading…
Reference in New Issue