Beispiel #1
0
    public void Update()
    {
        float delta = TimeManager.Delta;

        while (addCache.Count > 0)
        {
            BaseUnit unit = addCache[0];
            addCache.RemoveAt(0);
            if (!battleUnits.ContainsKey(unit.Id))
            {
                battleUnits.Add(unit.Id, unit);
                unit.Enter();
            }
        }
    }