Esempio n. 1
0
 public ViewWorld(Core.World world)
 {
     this.world         = world;
     world.onAddEntity += (e) => {
         var entityView = ViewCreater.CreateView(e, m_rootScene.transform.Find("Players"));
         if (entityView != null)
         {
             this.m_entityViews.Add(e.id, entityView);
         }
     };
     world.onRemoveEntity += (e) => {
         EntityView view;
         if (m_entityViews.TryGetValue(e.id, out view))
         {
             GameObject.Destroy(view.gameObject);
         }
     };
 }
Esempio n. 2
0
 public SingleVS(World world, MatchInfo matchInfo) : base(world, matchInfo)
 {
 }