This commit is contained in:
YangHua 2024-01-23 13:08:09 +08:00
parent e6567cccf2
commit 17e8dc1c37
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

@ -259,8 +259,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);
});
@ -270,8 +269,6 @@ public class UnmannedAerialVehicle : MonoBehaviour
{
atkPos = sb.transform.position;
AddBao(attackTarget.transform);
// 销毁objectToDestroy对象
//BeAssaulted("攻击到目标");
Destroy(sb);
});
}