コード例 #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();
 }