IndieGame/client/Assets/ParadoxNotion/NodeCanvas/Tasks/Actions/Camera/FadeOut.cs
DOBEST\zhaoyingjie f242607587 初始化工程
2024-10-11 10:12:15 +08:00

23 lines
445 B
C#

using NodeCanvas.Framework;
using ParadoxNotion.Design;
namespace NodeCanvas.Tasks.Actions
{
[Category("Camera")]
public class FadeOut : ActionTask
{
public float fadeTime = 1f;
protected override void OnExecute() {
CameraFader.current.FadeOut(fadeTime);
}
protected override void OnUpdate() {
if ( elapsedTime >= fadeTime )
EndAction();
}
}
}