internal override void OnSpriteEnter(SimplePlayer simplePlayer) { // 这里需要把SimplePlayer进行包装 // 目前代码简化就不进行处理,直接抛给逻辑层 var exitsts = scenePlayerLists.FirstOrDefault(o => o.Id == simplePlayer.Id); if (exitsts != null) { } else { scenePlayerLists.Add(simplePlayer); if (SpriteEnter != null) { SpriteEnter(this, new SpriteEnterEventArgs { Player = simplePlayer}); } } }
internal override void OnSpriteEnter(SimplePlayer simplePlayer) { }
internal override void OnEnterSceneInfo(SimplePlayer player) { controller.Model.Player = player; }
public PlayerModel() { Player = new SimplePlayer(); }