void Start() { capsuleCollider = GetComponent <CapsuleCollider>(); rootDialogSet = new DialogSet("root"); rootDialogSet.OnSkipped = (s) => { DialogManager.gInstance.SetDialogState(null); List <string> keyList = new List <string>(rootDialogSet.states.Keys); foreach (string k in keyList) { rootDialogSet.RemoveState(k); } InInteraction = false; }; }