Exemplo n.º 1
0
        public void ClearMoveRangeAndPath()
        {
            m_StartCell = null;
            m_EndCell   = null;

            m_TestClass.UpdatePosition(new Vector3Int(-1, -1, 0));
            //m_CursorCells.Clear();
        }
Exemplo n.º 2
0
        public MapClass CreateMapClass()
        {
            if (m_SelectedCls != null)
            {
                return(m_SelectedCls);
            }
            MapClass cls = MapClass.Instantiate <MapClass>(m_ClsPrefab, m_Map.mapObjectPool.transform, false);

            cls.map = m_Map;
            cls.Load(0);
            cls.UpdatePosition(m_CreatePosition);
            m_SelectedCls = cls;
            return(cls);
        }