//交互结束处理函数 private void OnIntactOverFunc() { if (!string.IsNullOrEmpty(mCurrentCharacterAudioName)) { FusionAudio.PostCharacterAnimation(mCurrentCharacterAudioName, "Dialogue_01", false); } }
public override void End(eCampaignCharacterState newState) { base.End(newState); string audioName = Character.Model.audioName; if (!string.IsNullOrEmpty(audioName)) { FusionAudio.PostCharacterAnimation(audioName, "Run", false); } }
void PostAudioMessage(GameObject player, GameObject interactable) { if (IsNpcFuncMenu(player, interactable)) { CharacterComponent Character = interactable.GetComponent <CharacterComponent>(); mCurrentCharacterAudioName = Character.Model.audioName; if (!string.IsNullOrEmpty(mCurrentCharacterAudioName)) { FusionAudio.PostCharacterAnimation(mCurrentCharacterAudioName, "Dialogue_01", true); } } }
public override void Begin(eCampaignCharacterState previousState) { base.Begin(previousState); SetDesiredAnimationState(global::MoveController.CombatantMoveState.kLocomotion); string audioName = Character.Model.audioName; if (!string.IsNullOrEmpty(audioName)) { FusionAudio.PostCharacterAnimation(audioName, "Run", true); } }
public override void End(eCampaignCharacterState newState) { if (Character == null || Character.Model == null) { return; } string audioName = Character.Model.audioName; if (!string.IsNullOrEmpty(audioName)) { FusionAudio.PostCharacterAnimation(audioName, "Idle", false); } }
public override void Begin(eCampaignCharacterState previousState) { SetDesiredAnimationState(global::MoveController.CombatantMoveState.kIdle); if (Character == null || Character.Model == null) { return; } string audioName = Character.Model.audioName; if (!string.IsNullOrEmpty(audioName)) { FusionAudio.PostCharacterAnimation(audioName, "Idle", true); } }