46 lines
955 B
C#
46 lines
955 B
C#
using System.Collections.Generic;
|
|
namespace Gameplay.Fight.Capture
|
|
{
|
|
/// <summary>
|
|
/// 用于管理战场内的所有占领点
|
|
/// 仅在战场内使用
|
|
/// </summary>
|
|
public class CaptureManager
|
|
{
|
|
|
|
public List<CaptureInst> captureInsts = new List<CaptureInst>();
|
|
|
|
public static CaptureManager instance { get; private set; }
|
|
|
|
public static void CreateInstance()
|
|
{
|
|
instance = new CaptureManager();
|
|
}
|
|
|
|
private CaptureManager()
|
|
{
|
|
|
|
}
|
|
|
|
public void Init()
|
|
{
|
|
|
|
}
|
|
|
|
public void LogicUpdate(float dt)
|
|
{
|
|
for (int i = 0; i < captureInsts.Count; i++)
|
|
{
|
|
var captureInst = captureInsts[i];
|
|
captureInst.LogicUpdate(dt);
|
|
}
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
instance = null;
|
|
}
|
|
|
|
}
|
|
}
|