public void StopControlTypeAbnormalStatus(ControlTypeAbnormalStatus controlTypeAbnormalStatusType)
        {
            int type = (int)controlTypeAbnormalStatusType;

            if (false == isControlTypeAbnormalStatuses[type])
            {
                return;
            }
            isControlTypeAbnormalStatuses[type] = false;

            if (null != controlTypeAbnormalStatusCoroutines[type])
            {
                StopCoroutine(controlTypeAbnormalStatusCoroutines[type]);
            }
            controlTypeAbnormalStatusCoroutines[type] = null;

            switch (controlTypeAbnormalStatusType)
            {
            case ControlTypeAbnormalStatus.STUN:
                abnormalComponents.StunEffect.SetActive(false);
                SubRetrictsMovingCount();
                SubRetrictsBehaviorCount();
                break;

            case ControlTypeAbnormalStatus.SLIDING:
                abnormalComponents.SlidingEffect.SetActive(false);
                SubRetrictsMovingCount();
                SubRetrictsBehaviorCount();
                break;

            default:
                break;
            }
        }
Exemple #2
0
 protected override bool IsControlTypeAbnormal(ControlTypeAbnormalStatus abnormalStatusType)
 {
     return(isControlTypeAbnormalStatuses[(int)abnormalStatusType]);
 }
Exemple #3
0
 protected override bool IsControlTypeAbnormal(ControlTypeAbnormalStatus abnormalStatusType)
 {
     throw new System.NotImplementedException();
 }
 protected abstract bool IsControlTypeAbnormal(ControlTypeAbnormalStatus abnormalStatusType);