//--------------------------------------------------------------------------------------------------------------

        protected UiBaseCharacterState(IUiCharacter handler, BaseStateMachine fsm, UiCharacterParameters parameters)
        {
            Fsm           = fsm;
            Handler       = handler;
            IsInitialized = true;
            Parameters    = parameters;
        }
Example #2
0
        //--------------------------------------------------------------------------------------------------------------

        #region Constructor

        public UiCharacterFsm(Camera camera, UiCharacterParameters parameters, IUiCharacter handler) :
            base(handler)
        {
            IdleState     = new UiCharacterIdle(handler, this, parameters);
            DisableState  = new UiCharacterDisable(handler, this, parameters);
            HoverState    = new UiCharacterHover(handler, this, parameters);
            SelectedState = new UiCharacterSelected(handler, this, parameters);
            //UnselectedState = new UiCharacterUnselected(handler, this, parameters);
            AttackState = new UiCharacterAttack(handler, this, parameters);

            RegisterState(IdleState);
            RegisterState(DisableState);
            RegisterState(HoverState);
            //RegisterState(UnselectedState);
            RegisterState(SelectedState);
            RegisterState(AttackState);

            Initialize();
        }
Example #3
0
        //--------------------------------------------------------------------------------------------------------------


        public UiCharacterSelected(IUiCharacter handler, BaseStateMachine fsm, UiCharacterParameters parameters) : base(
                handler, fsm, parameters) =>
 public UiCharacterAttack(IUiCharacter handler, BaseStateMachine fsm, UiCharacterParameters parameters) : base(
         handler, fsm, parameters)
 {
 }