This commit is contained in:
账号名 2024-01-23 13:15:41 +08:00
commit 6c9c44dabc
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);
});
}