Beispiel #1
0
    // 销毁所有模型
    public void DestroyAll()
    {
        foreach (var u in units.Values)
        {
            Destroy(u.gameObject);
        }

        units.Clear();

        MG.UPSUI.Hide();
    }
Beispiel #2
0
    public void Clear()
    {
        foreach (var ae in obj2LifeTime.KeyArray)
        {
            if (ae != null)
            {
                Destroy(ae.gameObject);
            }
        }

        obj2LifeTime.Clear();
    }