Files
DRHPS/code-csharp/INT_ChangeSusieStateOnChatEnd.cs
2025-03-04 14:25:15 +08:00

21 lines
392 B
C#

using UnityEngine;
public class INT_ChangeSusieStateOnChatEnd : MonoBehaviour
{
[Header("WARNING! This component is removed once ran")]
public INT_Chat TargetChat;
public Susie_Follower Susie;
public bool AllowSusieFollow;
private void Update()
{
if (TargetChat.FinishedText)
{
Susie.FollowingEnabled = AllowSusieFollow;
Object.Destroy(this);
}
}
}