19 lines
421 B
C#
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");
|
|
}
|
|
}
|