laser emitter module

This commit is contained in:
2023-04-06 15:21:23 +02:00
parent b4612b482f
commit cb54ebab05
39 changed files with 540 additions and 32 deletions

View File

@@ -0,0 +1,18 @@
using NaughtyAttributes;
using Station46.Scripts;
using UnityEngine;
namespace Station46.Modules.Laser.Scripts
{
public class LaserButtonEmitter : LaserEmitter
{
[BoxGroup("Internal")] [SerializeField] private Button button;
protected override void Awake()
{
base.Awake();
button.ButtonEvent += (_, type) => laser.firing = type == ButtonEventType.Pressed;
}
}
}