This commit is contained in:
parent
1b04f8000b
commit
b266249130
|
@ -11,6 +11,7 @@ public class Main_interface_Panel : XUIPanel
|
|||
public Button fanhui_btn;//返回初始界面
|
||||
public Button train;
|
||||
public Button replay;
|
||||
public Button appQuet;
|
||||
public Main_interface_Panel() : base(UIType.Fixed, UIMode.None, UICollider.None)
|
||||
{
|
||||
uiPath = "UIPanel/Main_interface_Panel";
|
||||
|
@ -19,6 +20,7 @@ public class Main_interface_Panel : XUIPanel
|
|||
{
|
||||
replay = this.transform.Find("UPBG/double_quotation_btn").GetComponent<Button>();
|
||||
train = this.transform.Find("UPBG/training_task_btn").GetComponent<Button>();
|
||||
appQuet = this.transform.Find("UPBG/Power_Off_btn").GetComponent<Button>();
|
||||
fanhui_btn = this.transform.Find("UPBG/Back_bton").GetComponent<Button>();
|
||||
fanhui_btn.onClick.AddListener(() =>
|
||||
{
|
||||
|
@ -31,6 +33,9 @@ public class Main_interface_Panel : XUIPanel
|
|||
});
|
||||
replay.onClick.AddListener(() => { ReplayPanel(); });
|
||||
train.onClick.AddListener(() => { TrainPanel(); });
|
||||
appQuet.onClick.AddListener(() => { Application.Quit();
|
||||
//Debug.Log("退出");
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -139,7 +139,7 @@ public class Microwaveweapon : MonoBehaviour
|
|||
{
|
||||
while (true)
|
||||
{
|
||||
yield return new WaitForSeconds(microwtimer);
|
||||
yield return new WaitForSeconds(microwtimer + 1.5f);
|
||||
if (miceopos!=null&&ismicow)
|
||||
{
|
||||
Launchattack();
|
||||
|
|
|
@ -381,20 +381,20 @@ public class Spectrumdetection : MonoBehaviour
|
|||
{
|
||||
Microwaveweapon microwaveweapon = Microwaveweapon.MicrowaveweaponList.Find(x => (x != null && x.ismicow == false));
|
||||
|
||||
LaserFireControlPlatformManger laserFireControlPlatformManger = LaserFireControlPlatformManger.laserFireControlPlatformMangers.Find(x => (x != null && x.isLasing == false && x.lasertime <= 0));
|
||||
//LaserFireControlPlatformManger laserFireControlPlatformManger = LaserFireControlPlatformManger.laserFireControlPlatformMangers.Find(x => (x != null && x.isLasing == false && x.lasertime <= 0));
|
||||
if (microwaveweapon)
|
||||
{
|
||||
microwaveweapon.ismicow = true;
|
||||
microwaveweapon.miceopos = unmannedAerialVehicle.transform;
|
||||
microwaveweapon.Orientation();
|
||||
}
|
||||
else if (laserFireControlPlatformManger)
|
||||
{
|
||||
laserFireControlPlatformManger.lasertime = laserFireControlPlatformManger.storageIntervalTime;
|
||||
laserFireControlPlatformManger.isLasing = true;
|
||||
laserFireControlPlatformManger.targetPoint = unmannedAerialVehicle.transform;
|
||||
laserFireControlPlatformManger.Lasing();
|
||||
}
|
||||
//else if (laserFireControlPlatformManger)
|
||||
//{
|
||||
// laserFireControlPlatformManger.lasertime = laserFireControlPlatformManger.storageIntervalTime;
|
||||
// laserFireControlPlatformManger.isLasing = true;
|
||||
// laserFireControlPlatformManger.targetPoint = unmannedAerialVehicle.transform;
|
||||
// laserFireControlPlatformManger.Lasing();
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -304,20 +304,20 @@ public class RadarManger : MonoBehaviour
|
|||
{
|
||||
attackColliders1.Add(colliders[i]);
|
||||
LaserFireControlPlatformManger laserFireControlPlatformManger = LaserFireControlPlatformManger.laserFireControlPlatformMangers.Find(x => (x != null && x.isLasing == false && x.lasertime <= 0));
|
||||
Microwaveweapon microwaveweapon = Microwaveweapon.MicrowaveweaponList.Find(x => (x != null && x.ismicow == false));
|
||||
//Microwaveweapon microwaveweapon = Microwaveweapon.MicrowaveweaponList.Find(x => (x != null && x.ismicow == false));
|
||||
if (laserFireControlPlatformManger)
|
||||
{
|
||||
laserFireControlPlatformManger.lasertime = laserFireControlPlatformManger.storageIntervalTime;
|
||||
laserFireControlPlatformManger.lasertime = laserFireControlPlatformManger.storageIntervalTime+1.5f;
|
||||
laserFireControlPlatformManger.isLasing = true;
|
||||
laserFireControlPlatformManger.targetPoint = unmannedAerialVehicle.transform;
|
||||
laserFireControlPlatformManger.Lasing();
|
||||
}
|
||||
else if (microwaveweapon)
|
||||
{
|
||||
microwaveweapon.ismicow = true;
|
||||
microwaveweapon.miceopos = unmannedAerialVehicle.transform;
|
||||
microwaveweapon.Orientation();
|
||||
}
|
||||
//else if (microwaveweapon)
|
||||
//{
|
||||
// microwaveweapon.ismicow = true;
|
||||
// microwaveweapon.miceopos = unmannedAerialVehicle.transform;
|
||||
// microwaveweapon.Orientation();
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -91,7 +91,7 @@ PlayerSettings:
|
|||
xboxEnableFitness: 0
|
||||
visibleInBackground: 1
|
||||
allowFullscreenSwitch: 1
|
||||
fullscreenMode: 3
|
||||
fullscreenMode: 1
|
||||
xboxSpeechDB: 0
|
||||
xboxEnableHeadOrientation: 0
|
||||
xboxEnableGuest: 0
|
||||
|
|
Loading…
Reference in New Issue