public BattleManager(IConfigurationFactory factory, IBattleGroup group) { _events = factory.GetEvents(); _msgCollector = ServiceLocator.GetServiceLocator().GetService<IMsgCollector>(); _group = group; _args = new BattleEventArgs(group); //建立戰鬥程序 InitailBattleProcess(); }
public CharactorBehavior(ICharactorProperty charactorProperty, IMsgCollector msgCollector) { this._charactorProperty = charactorProperty; this._msgCollector = msgCollector; }