Ejemplo n.º 1
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);
                }
            }
        }