public void Stop(Behavior bh, Status result) { if (result == Status.BH_RUNNING) { Debug.LogError("Trying to stop something that was still running!"); } bh.m_Status = result; if (bh.m_Observer != null) { bh.m_Observer(result); } }