예제 #1
0
        public GridElementBase createAndAddElem(GridElementType type)
        {
            GridElementBase elem = null;

            if (GridElementType.eBasic == type)
            {
                elem = new GridElementBase();
            }
            if (GridElementType.eScale == type)
            {
                elem = new ScaleGridElement();
            }

            m_elemList.Add(elem);
            elem.addUpdateHandle(onElemChangedHandle);
            //onElemChangedHandle(elem);    // 添加后不改变

            return(elem);
        }
예제 #2
0
 public SelfMagicAniControl(SceneCardBase rhv) : 
     base(rhv)
 {
     m_scaleGridElement = new ScaleGridElement();
     m_scaleGridElement.setMovedEntity(this);
 }
예제 #3
0
 override public void createAndAddGridElem()
 {
     m_scaleGridElement = m_card.m_sceneDZData.m_sceneDZAreaArr[(int)m_card.sceneCardItem.playerSide].inSceneCardList.getDynSceneGrid().createAndAddElem(GridElementType.eScale) as ScaleGridElement;
     m_scaleGridElement.setMovedEntity(this);
 }
예제 #4
0
        public GridElementBase createAndAddElem(GridElementType type)
        {
            GridElementBase elem = null;

            if(GridElementType.eBasic == type)
            {
                elem = new GridElementBase();
            }
            if (GridElementType.eScale == type)
            {
                elem = new ScaleGridElement();
            }

            m_elemList.Add(elem);
            elem.addUpdateHandle(onElemChangedHandle);
            //onElemChangedHandle(elem);    // 添加后不改变

            return elem;
        }