Пример #1
0
        protected BaseEntityState(EntityBehavioursFsm fsm)
        {
            if (fsm == null)
            {
                throw new ArgumentException(
                          $"Can't create {typeof(BaseEntityState)} with a null {typeof(EntityBehavioursFsm)}.");
            }

            Fsm = fsm;
        }
Пример #2
0
 protected virtual void Awake()
 {
     Fsm = CreateEntityFsm();
     Fsm.Initialize();
 }