Ejemplo n.º 1
0
 public void UpdateGrid(GameEntity entity)
 {
     if (entity.hasTransform)
     {
         var sceenPoint = DirectorUtil.WorldPointInScreen(entity.transform.position);
         m_grid.Update(entity, (int)(sceenPoint.x), (int)(sceenPoint.y));
     }
 }
Ejemplo n.º 2
0
        public List <GameEntity> GetGridEntities(GameEntity entity)
        {
            var sceenPoint = DirectorUtil.WorldPointInScreen(entity.transform.position);

            return(m_grid.GetByPosition((int)(sceenPoint.x), (int)(sceenPoint.y)));
        }