public void BeginPreloadedEvent(GameObject loadToMe) { loadOnThis = loadToMe; if (CurrentTrial != null) { Debug.Log("Beginning Preloaded Trial: " + CurrentTrial.Name); CurrentTrial.Setup(); } }
public void BeginEvent(Type t) { if (CurrentTrial != null) { CurrentTrial.Cleanup(); } gameObject.AddComponent(t); Debug.Log("Beginning Trial: " + CurrentTrial.Name); CurrentTrial.Setup(); }