// 销毁所有模型 public void DestroyAll() { foreach (var u in units.Values) { Destroy(u.gameObject); } units.Clear(); MG.UPSUI.Hide(); }
public void Clear() { foreach (var ae in obj2LifeTime.KeyArray) { if (ae != null) { Destroy(ae.gameObject); } } obj2LifeTime.Clear(); }