Beispiel #1
0
        public void RotateClockwise(bool bUseRotPwr = false)
        {
            _Dir++;
            _Dir = (int)Mathf.Repeat(_Dir, 6);

            bool bChangeDir = true;

            if (bUseRotPwr)
            {
                MiroModelV1 model = CellObjCtrlUtils.GetMiroModelFromCell(this);
                if (model != null)
                {
                    int rotRPwr = model.GetRotRightPwr();
                    bChangeDir = (rotRPwr > 0);
                }
            }
            if (bChangeDir)
            {
                ChangeDir();
                ExhaustRotRightPower();
            }
        }