Виртуальный курсор (для управления с геймпада)

This commit is contained in:
Евгений Титаренко 2024-08-09 19:07:35 +03:00
parent d42bd00c3d
commit bbb66a5273
12 changed files with 135 additions and 8 deletions

View file

@ -1,4 +1,5 @@
using System;
using System.Diagnostics;
using Godot;
public partial class Flashlight : Node
@ -23,7 +24,7 @@ public partial class Flashlight : Node
[Export] public Curve BrightnessCurve;
[Export] public AudioStreamPlayer CrankSoundPlayer;
private float FlashlightRadius = Constants.MaxFlashlightRadius;
private float FlashlightEnergy = 0;
private float FlashlightChargeTimeout = 1;