init
This commit is contained in:
commit
e0a842f222
796 changed files with 361371 additions and 0 deletions
19
Assets/Scripts/SpikeEventAnswerer.cs
Normal file
19
Assets/Scripts/SpikeEventAnswerer.cs
Normal file
|
@ -0,0 +1,19 @@
|
|||
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");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue