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(); } public void SpikeToggle() { sb.Harming = !sb.Harming; Debug.Log("Spike toggle event called"); } }