示例#1
0
 public void Init(Map map)
 {
     this.map = map;
 }
示例#2
0
        internal void Init(Map map, short x, short y)
        {
            CellObject = gameObject;
            Map = map;
            Loader = map.Loader;

            this.X = x;
            this.Y = y;
            this.Z = (short)(-x - y);
            this.Key = MapUtils.MakeKey(x, y);

            CellObject.transform.localPosition = new Vector3(CenterX, CenterY);

            Neighbours = new MapCell[NumNeighbours];
            SceneEntities = new List<SceneEntity>();
            TowerEntities = new List<SceneEntity>();
        }