public void Init(WaitPhase phase, DialogueEditorWaitTypes type, float duration){ this.phase = phase; this.type = type; this.duration = duration; elapsed = 0; go = true; }
private void waitComplete(){ go = false; phase.waitComplete(); phase = null; Destroy(this.gameObject); }