18 lines
383 B
C#
18 lines
383 B
C#
using UnityEngine;
|
|
|
|
public class CenterButtonTarget : MonoBehaviour
|
|
{
|
|
public TimingWheelShooter owner;
|
|
|
|
private void Awake()
|
|
{
|
|
if (owner == null)
|
|
owner = FindFirstObjectByType<TimingWheelShooter>();
|
|
}
|
|
|
|
public void NotifyHit(ProjectileBehaviour projectile)
|
|
{
|
|
if (owner != null)
|
|
owner.NotifyButtonHit(projectile);
|
|
}
|
|
} |