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