강의

멘토링

커뮤니티

Inflearn コミュニティ Q&A

graphite のプロフィール画像
graphite

投稿した質問数

【ユニティレベルアップ!】 モジュール式で開発するスキルシステム

IdentifiedObject

StateMachine중에 이해가 안가는 부분이 있습니다

解決済みの質問

作成

·

160

0

TryTransion함수에서

if (transition.TransitionCommand != StateTransition<EntityType>.kNullCommand || !transition.IsTransferable)
                continue;

이부분에서 나눠서 짜면

if (커맨드있음) continue;

if (전이불가) continue;

인데 사실상 커맨드가 있으면 뒤에 전이상태는 상관이 없다고 생각을 하는데요.

그런데 이제 StateMachine을 상속한 클래스에서 MakeTransition을 한것을 보면

MakeTransition<ReadyState, CastingState>(SkillExecuteCommand.Use, state => Owner.IsUseCast);

이런식으로 커맨드와 조건을 같이 써놓은것이 있는데, 뒤에는 작동이 안되지 않나라고 생각해서 제가 잘못해석한건지 알아보고자 질문드립니다.

unitymodules

回答 1

0

graphite님의 프로필 이미지
graphite
質問者

ExecuteCommand에서 조건을 사용한다는걸 알았습니다. 띠용~ @.@

graphite のプロフィール画像
graphite

投稿した質問数

質問する