laser redirector group module
This commit is contained in:
@@ -3,14 +3,12 @@ using UnityEngine;
|
||||
namespace Station46.Modules.Laser.Scripts
|
||||
{
|
||||
[RequireComponent(typeof(LaserReceiver))]
|
||||
[SelectionBase]
|
||||
public class LaserRedirector : Laser
|
||||
{
|
||||
private LaserReceiver _receiver;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
_receiver = GetComponent<LaserReceiver>();
|
||||
_receiver.LaserEvent += (_, type) => firing = type == LaserEventType.Hit;
|
||||
GetComponent<LaserReceiver>().LaserEvent += (_, type) => firing = type == LaserEventType.Hit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
using EscapeRoomEngine.Engine.Runtime.Modules;
|
||||
using EscapeRoomEngine.Engine.Runtime.Modules.State;
|
||||
|
||||
namespace Station46.Modules.Laser.Scripts
|
||||
{
|
||||
public class LaserRedirectorGroup : ModuleState
|
||||
{
|
||||
public override void SetModule(Module module) {}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 17682b8cd3b64531a43877f8a07ab954
|
||||
timeCreated: 1683679238
|
||||
Reference in New Issue
Block a user