Example #1
0
        // absorbing configuration
        void ConfigAbsorbing()
        {
            //int bwdDir = _cellCtrl.GetBwdDir ();
            MiroModelV1 modelMe  = CellObjCtrlUtils.GetMiroModelFromCell(_cellCtrl);
            CellObjCtrl fwdCtrl  = CellObjCtrlUtils.GetFwdCellObjCtrl(_cellCtrl);
            MiroModelV1 modelFwd = CellObjCtrlUtils.GetMiroModelFromCell(fwdCtrl);

            ConfigureHole2(modelMe, true);
            ConfigureHole2(modelFwd, true);

            MiroV1PlacementMgr.ConfigAbsorbingForTF(_cellCtrl.transform);
            MiroV1PlacementMgr.ConfigAbsorbingForTF(fwdCtrl.transform);
        }
Example #2
0
        void ConfigAbsorbForCtrl2(CellObjCtrl ctrl)
        {
            for (int dir = 0; dir < 6; dir++)
            {
                CellObjCtrl nbCtrl = CellObjCtrlUtils.GetNbCellObjCtrl(ctrl, dir);

                bool bShouldBeingAbsorbed =
                    CellObjCtrlUtils.ShouldBeingAbsorbedToDir(ctrl, dir);
                if (!bShouldBeingAbsorbed)
                {
                    continue;
                }

                MiroV1PlacementMgr.ConfigAbsorbingForTF(nbCtrl.transform);
                if (!_AbsorbingCtrls.Contains(nbCtrl))
                {
                    _AbsorbingCtrls.Add(nbCtrl);
                }
            }
        }