Twin-Hook/Assets/Scripts/SpikeEventAnswerer.cs
Gerard Gascón e0a842f222 init
2025-04-24 17:26:56 +02:00

19 lines
421 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SpikeEventAnswerer : MonoBehaviour
{
private SpikeBehavior sb;
// Start is called before the first frame update
void Start()
{
sb = GetComponentInParent<SpikeBehavior>();
}
public void SpikeToggle()
{
sb.Harming = !sb.Harming;
Debug.Log("Spike toggle event called");
}
}