add:添加中控控制脚本

This commit is contained in:
bzx
2026-01-14 19:33:17 +08:00
parent 8ff4471f87
commit 07fd6e5f5b
9 changed files with 495 additions and 102 deletions

View File

@@ -173,7 +173,9 @@ public class GameManager : NetworkBehaviour
[SyncVar]
public long vistEnd = 0;
// 总游玩时长
private int vistAllTime = (int)(60*12);//开启最后拼刺刀模式
public int vistAllTime = (int)(60*12);//开启最后拼刺刀模式
public float curGameTime;
[SyncVar]
public string settleData = "";
@@ -1007,6 +1009,15 @@ public class GameManager : NetworkBehaviour
// StartSpecialEvent(GameEnemyEventType.CleanUp);
// }, 5);
// }
if (isStart)
{
curGameTime+=Time.deltaTime;
}
}
public int GetNowTime()
{
return Mathf.RoundToInt(curGameTime);
}
IEnumerator CreateMortarBullet()