Files
LowPolyRPG/Assets/Plugins/RaycastPro/_Demo/_Scripts/EnemyTrack.cs

23 lines
484 B
C#
Raw Normal View History

2025-06-25 11:10:11 +01:00
using System.Collections;
using System.Collections.Generic;
using Plugins.RaycastPro.Demo.Scripts;
using RaycastPro.Detectors;
using UnityEngine;
namespace Plugins.RaycastPro.Demo.Scripts
{
public class EnemyTrack : MonoBehaviour
{
public SyncRotation syncRotation;
public LightDetector lightDetector;
void Update()
{
if (lightDetector.Performed)
{
syncRotation.Sync();
}
}
}
}