private void OnTriggerEnter(Collider other) { if (success) { Debug.Log("Winner"); wm.Success(); } else { Debug.Log("Loser"); wm.Failure(); } }