public void SetType_Base_Selected(int iIdxTypeCore)
    {
        if (false == OutRangeOfBase(m_iIdxBase_Selected))
        {
            CBASE__ baseCurr = m_listBase__[m_iIdxBase_Selected];
            baseCurr.setIdxType(iIdxTypeCore);
        }

        _SetDrawDebug_Base__All();
    }
Esempio n. 2
0
    public bool newSquareBaseBlockFromTri(int iIdxTri, bool bOnlyPair, CTriCollector tricollector)
    {
        bool bSetNew = base.newSquareBaseFromTri(iIdxTri, bOnlyPair, tricollector);

        if (true == bSetNew)
        {
            if (m_listBase__.Count < 1)
            {
                return(false);
            }

            int     irandomizeBlocktype = UnityEngine.Random.Range(0, m_itypeblockNum);
            CBASE__ baseBlockLastof     = m_listBase__[m_listBase__.Count - 1];
            baseBlockLastof.setIdxType(irandomizeBlocktype);

            return(true);
        }
        return(false);
    }
Esempio n. 3
0
    protected bool Load_BaseBlock_Binary(ref CBaseBlockCollector managerBaseBlock_ref)
    {
        foreach (BaseInfo core in m_stageMap.BlockBaseList)
        {
            CBASE__ baseCurr = new CBASE__();

            baseCurr._v3PositionCenter = core.CenterPos;
            baseCurr.setIdxType(core.Type);
            baseCurr._listIdxTris   = core.CellIndex;
            baseCurr._listv3Pnts    = core.CoreTriPnt;
            baseCurr._listv3PntsSrc = core.CoreTriPntSrc;

            if (baseCurr._listv3PntsSrc.Count > 2)
            {
                managerBaseBlock_ref.m_listBase__.Add(baseCurr);
            }
        }

        managerBaseBlock_ref._SetDrawDebug_Base__All();

        return(false);
    }