Skip to content

Commit

Permalink
Move SayDialog animation outside the scope of SetCharacter
Browse files Browse the repository at this point in the history
  • Loading branch information
breadnone committed Jun 22, 2021
1 parent e86185e commit b7302da
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Assets/Fungus/Scripts/Components/SayDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,6 @@ public virtual void SetCharacter(Character character)
var prevSpeakingCharacter = speakingCharacter;
speakingCharacter = character;

if (prevSpeakingCharacter != speakingCharacter && dialogPanelAnimation != SayDialogAnim.None)
{
SayDialogAnimation();
}

// Dim portraits of non-speaking characters
var activeStages = Stage.ActiveStages;
for (int i = 0; i < activeStages.Count; i++)
Expand Down Expand Up @@ -443,6 +438,12 @@ public virtual void SetCharacter(Character character)
}

SetCharacterName(characterName, character.NameColor);

//SayDialog Animation
if (prevSpeakingCharacter != speakingCharacter && dialogPanelAnimation != SayDialogAnim.None)
{
SayDialogAnimation();
}
}
}

Expand Down

0 comments on commit b7302da

Please sign in to comment.