rj-action-library/Runtime/Cameras/CameraSlotSelectors/SetActiveCameraSlotByFlags.cs

25 lines
423 B
C#
Raw Normal View History

using System.Diagnostics;
using System.Collections;
using System.Collections.Generic;
using System;
using Godot;
namespace Rokojori
{
[Tool]
[GlobalClass]
public partial class SetActiveCameraSlotByFlags:CameraSlotSelector
{
[Export]
public SelectorFlag[] flags;
2025-08-31 06:05:39 +00:00
public override CameraSlot GetCameraSlot()
{
2025-08-31 06:05:39 +00:00
var slot = CameraManager.Get().GetSlot( flags );
return slot;
}
}
}