Example #1
0
        void OperateFwdAnteller(
            HexCoord hc,
            MiroV1ModelSetting mSetThis,
            MiroModelV1 model)
        {
            int  DirFwd = _cellCtrl.GetFwdDir();
            bool bFwd   = CheckValidInDir(mSetThis, hc, DirFwd);

            ChangeAnteller(bFwd, model._Antellers [0]);
        }
Example #2
0
        public static CellObjCtrl GetNbCellObjCtrl(CellObjCtrl cctrl, int RelativeDir)
        {
            if (!IsInChessBoard(cctrl))
            {
                return(null);
            }

            int FwdDir = cctrl.GetFwdDir();
            int dir    = FwdDir + RelativeDir;

            dir = (int)Mathf.Repeat((float)dir, 6.0f);
            HexCoord  hc   = cctrl.GetComponent <HexCoord> ();
            Transform NbTF = hc._Neighbors [dir];

            if (NbTF == null)
            {
                return(null);
            }

            CellObjCtrl nbCtrl =
                NbTF.GetComponent <CellObjCtrl> ();

            return(nbCtrl);
        }