DRHPS/code-csharp/en_US/INT_ChangeSusieStateOnChatEnd.cs
2025-04-08 11:31:35 +08:00

21 lines
449 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);
}
}
}