// 刷新指定单位的 AI public void RefreshAI(Unit u) { smm.Del(u.UID); var sm = u.CreateAI(); if (sm != null) { smm.Add(sm); } }
private void OnEnable() { StateMachineManager.Add(this); }