Example #1
0
File: Room.cs Project: radtek/SCM2
        // 刷新指定单位的 AI
        public void RefreshAI(Unit u)
        {
            smm.Del(u.UID);
            var sm = u.CreateAI();

            if (sm != null)
            {
                smm.Add(sm);
            }
        }
Example #2
0
 private void OnEnable()
 {
     StateMachineManager.Add(this);
 }