This commit is contained in:
parent
b679f840b2
commit
cc1d1a5348
|
@ -270,8 +270,9 @@ public class Microwaveweapon : MonoBehaviour
|
||||||
{
|
{
|
||||||
//接收激光下发的位置
|
//接收激光下发的位置
|
||||||
Vector3 vector =new Vector3(float.Parse(data[2]), float.Parse(data[3]),float.Parse(data[4]));
|
Vector3 vector =new Vector3(float.Parse(data[2]), float.Parse(data[3]),float.Parse(data[4]));
|
||||||
microwavemoder.transform.DOLookAt(vector, 0.1f).SetEase(Ease.Linear).OnComplete(() => {
|
float _micdistance = Vector3.Distance(vector, transform.position);
|
||||||
microblog.MicrowaveDisplay(micdistance/10 + 1, 0.5f);
|
microwavepoint.transform.DOLookAt(vector, 0.1f).SetEase(Ease.Linear).OnComplete(() => {
|
||||||
|
microblog.MicrowaveDisplay(_micdistance / 10 + 1, 0.5f);
|
||||||
StartCoroutine(Offlaserstrike());
|
StartCoroutine(Offlaserstrike());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,7 @@ public class Taskpanel : MonoBehaviour
|
||||||
public Button cancel4;//叉掉按钮
|
public Button cancel4;//叉掉按钮
|
||||||
public Button cancel5;//叉掉按钮
|
public Button cancel5;//叉掉按钮
|
||||||
public Button menu_button;//按钮显示收藏
|
public Button menu_button;//按钮显示收藏
|
||||||
|
public Button guanji_button;//按钮显示收藏
|
||||||
|
|
||||||
public Button fanhuiBtn;
|
public Button fanhuiBtn;
|
||||||
public Button fanhui;
|
public Button fanhui;
|
||||||
|
@ -119,6 +120,10 @@ public class Taskpanel : MonoBehaviour
|
||||||
{
|
{
|
||||||
Viewpoint_flight_panl.gameObject.SetActive(false);
|
Viewpoint_flight_panl.gameObject.SetActive(false);
|
||||||
});
|
});
|
||||||
|
guanji_button.onClick.AddListener(() =>
|
||||||
|
{
|
||||||
|
Application.Quit();
|
||||||
|
});
|
||||||
menu_button.onClick.AddListener(() =>
|
menu_button.onClick.AddListener(() =>
|
||||||
{
|
{
|
||||||
if (isp == true)
|
if (isp == true)
|
||||||
|
|
Loading…
Reference in New Issue