I used the following coded but my handler isnt being called. What am I doing wrong?:
//on a gameobject
void Start () {
FungusPrioritySignals.OnFungusPriorityStart += OnFungusPriorityStart;
FungusPrioritySignals.OnFungusPriorityEnd += OnFungusPriorityEnd;
}
private void OnFungusPriorityStart()
{
FungusisActive = true;
Debug.Log("Fungus started");
}
private void OnFungusPriorityEnd()
{
FungusisActive = false;
}
aykutkaraca
Sun, 30 Sep 2018 19:24:31 GMT
I found it. You need to set priority signal up or down in the flowcharts to send the signal.