16 lines
210 B
C#
16 lines
210 B
C#
|
using Godot;
|
||
|
using System;
|
||
|
|
||
|
namespace BITKit;
|
||
|
public partial class VideoPlayer : VideoStreamPlayer
|
||
|
{
|
||
|
[Export] private bool loop;
|
||
|
public override void _Ready()
|
||
|
{
|
||
|
if (loop)
|
||
|
{
|
||
|
Finished += Play;
|
||
|
}
|
||
|
}
|
||
|
}
|