/// <summary> /// 初始化 /// </summary> public void Init() { context = new GameContext(); _logicManager = GlobalClient.GameManager.LogicManager; viewOjbList = new List <EntityView>(); _viewObjMap = new Dictionary <int, EntityView>(); }
/// <summary> /// 初始化游戏 /// </summary> public void Init() { _logicManager = new LogicEntityManager(); _viewManager = new EntityViewManager(); ViewManager.Init(); LogicManager.Init(); }
public virtual void Init(CharData charData, LogicEntityManager gameMap) { context = new GameContext(); _charData = charData; //从服务器发来创建实体名字 name = _charData.entityName; try { //解析单位名字转换ID entityId = int.Parse(charData.entityName); }catch (Exception e) { Debug.LogError(string.Format("Parse charData.Name to Integer Error! {0}", _charData.entityName)); } }
public override void Init(CharData charData, LogicEntityManager gameMap) { base.Init(charData, gameMap); GlobalClient.GameManager.LogicManager.playerEntity = this; }
public override void Init(CharData charData, LogicEntityManager gameMap) { base.Init(charData, gameMap); _mActorState = new StandActorState(this); }