27 lines
492 B
C#
27 lines
492 B
C#
|
|
using System.Diagnostics;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System;
|
|
using Godot;
|
|
|
|
|
|
namespace Rokojori
|
|
{
|
|
[Tool]
|
|
[GlobalClass, Icon("res://addons/rokojori_action_library/Icons/VirtualCamera3D.svg") ]
|
|
public partial class SetVirtualCameraInput:Action
|
|
{
|
|
[Export]
|
|
public VirtualCamera camera;
|
|
|
|
[Export]
|
|
public bool inputEnabled = true;
|
|
|
|
protected override void _OnTrigger()
|
|
{
|
|
camera.inputEnabled = inputEnabled;
|
|
}
|
|
|
|
}
|
|
} |