Example #1
0
        public void InitCommon(IFsmTransitionHelper infoProvider, ICharacterInfoProvider characterInfo)
        {
            AddState(ActionState.CreateCommonNullState(), infoProvider, characterInfo);

            AddState(ActionState.CreateFireState(), infoProvider, characterInfo);
            AddState(ActionState.CreateSpecialFireState(), infoProvider, characterInfo);
            AddState(ActionState.CreateSpecialFireHold(), infoProvider, characterInfo);
            AddState(ActionState.CreateSpecialFireEnd(), infoProvider, characterInfo);
            AddState(ActionState.CreateInjuryState(), infoProvider, characterInfo);
            AddState(ActionState.CreateReloadState(), infoProvider, characterInfo);
            AddState(ActionState.CreateSpecialReloadState(), infoProvider, characterInfo);

            AddState(ActionState.CreateUnarmState(), infoProvider, characterInfo);
            AddState(ActionState.CreateDrawState(), infoProvider, characterInfo);
            AddState(ActionState.CreateSwitchWeaponState(), infoProvider, characterInfo);
            AddState(ActionState.CreatePickUpState(), infoProvider, characterInfo);
            AddState(ActionState.CreateMeleeAttackOneState(), infoProvider, characterInfo);
            AddState(ActionState.CreateMeleeAttackTwoState(), infoProvider, characterInfo);
            AddState(ActionState.CreateMeleeAttackSpecialState(), infoProvider, characterInfo);
            AddState(ActionState.CreateGrenadeState(), infoProvider, characterInfo);
            AddState(ActionState.CreateOpenDoorState(), infoProvider, characterInfo);
            AddState(ActionState.CreatePropsState(), infoProvider, characterInfo);

            AddState(ActionState.CreateGlidingState(), infoProvider, characterInfo);
            AddState(ActionState.CreateParachutingState(), infoProvider, characterInfo);

            AddState(ActionState.CreateBuriedBombState(), infoProvider, characterInfo);
            AddState(ActionState.CreateDismantleBombState(), infoProvider, characterInfo);

            _resetParam = ResetCommon;
        }