Exemple #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);
        }
 public SelfMagicAniControl(SceneCardBase rhv) : 
     base(rhv)
 {
     m_scaleGridElement = new ScaleGridElement();
     m_scaleGridElement.setMovedEntity(this);
 }
 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);
 }
Exemple #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;
        }