Пример #1
0
        public void RotateCounterClockwise(bool bUseRotPwr = false)
        {
            _Dir--;
            _Dir = (int)Mathf.Repeat(_Dir, 6);

            bool bChangeDir = true;

            if (bUseRotPwr)
            {
                MiroModelV1 model = CellObjCtrlUtils.GetMiroModelFromCell(this);
                if (model != null)
                {
                    int rotLPwr = model.GetRotLeftPwr();
                    bChangeDir = (rotLPwr > 0);
                }
            }
            if (bChangeDir)
            {
                ChangeDir();
                ExhaustRotLeftPower();
            }
        }