Compare commits

...

2 Commits

Author SHA1 Message Date
YangHua af6c663b98 Merge branch 'master' of http://git.umayle.com:2023/yulong/NewN_UAVPlane 2024-01-23 13:08:13 +08:00
YangHua 17e8dc1c37 q 2024-01-23 13:08:09 +08:00
2 changed files with 2 additions and 5 deletions

View File

@ -135,7 +135,7 @@ public class GameManager : MonoSingleton<GameManager>
Teacher.gameObject.SetActive(false);
student.gameObject.SetActive(true);
GlobalFlag.isStartRehearsing = (UIBootstrap.Instance.GetRoomStateById(GlobalFlag.roomID) == 1);
//Debug.Log($"<color=red>isStartRehearsing={ GlobalFlag.isStartRehearsing}</color>");
Debug.Log($"<color=red>isStartRehearsing={ GlobalFlag.isStartRehearsing}</color>");
if (GlobalFlag.isStartRehearsing)
{
spt.GetComponent<Camera>().cullingMask = -1;

View File

@ -260,8 +260,7 @@ public class UnmannedAerialVehicle : MonoBehaviour
yield return new WaitForSeconds(5f);
GameObject obj = Instantiate(bulletPrefab, bulletPoint.position, bulletPoint.rotation);
obj.SetActive(true);
//Rigidbody rb = obj.GetComponent<Rigidbody>();
//rb.AddForce(bulletPoint.forward * 20f, ForceMode.Impulse);
obj.transform.DOMove(v3, 2).SetEase(Ease.Linear).OnComplete(() => {
Destroy(obj);
});
@ -271,8 +270,6 @@ public class UnmannedAerialVehicle : MonoBehaviour
{
atkPos = sb.transform.position;
AddBao(attackTarget.transform);
// 销毁objectToDestroy对象
//BeAssaulted("攻击到目标");
Destroy(sb);
});
}