Skip to content

Commit

Permalink
House keeping
Browse files Browse the repository at this point in the history
  • Loading branch information
breadnone committed Jun 22, 2021
1 parent 57cab4c commit 29ae71d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Assets/Fungus/Scripts/Components/SayDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,14 @@ public virtual RectTransform StoryTextRectTrans

// Cache active Say Dialogs to avoid expensive scene search
protected static List<SayDialog> activeSayDialogs = new List<SayDialog>();

protected Transform[] sayDialogTransformCache;
protected GameObject panelGo;
protected Transform cacheTransDialog;
protected virtual void SayDialogAnimation()
{
if(panelGo == null)
{
sayDialogTransformCache = GetComponentsInChildren<Transform>();
var sayDialogTransformCache = GetComponentsInChildren<Transform>();

foreach (Transform child in sayDialogTransformCache)
{
if(child.name.Equals("Panel"))
Expand Down

0 comments on commit 29ae71d

Please sign in to comment.