using CommonAI.ZoneClient; using CommonAIClient.Unity.Utils; namespace CommonAIClient.Unity.Battle { public class ComAIItem : ComAICell { protected ZoneItem ZItem { get { return ZObject as ZoneItem; } } public ComAIItem(BattleScene battleScene, ZoneItem obj) : base(battleScene, obj) { //加载模型 BattleFactroy.Instance.GameObjectAdapter.Load( ZItem.Info.FileName, System.IO.Path.GetFileNameWithoutExtension(ZItem.Info.FileName), (succ, o) => { if (succ) { if (this.IsDisposed) { BattleFactroy.Instance.GameObjectAdapter.Unload(o); } else { this.DisplayCell.Model = o; } } }); } } }