void Update() { if (currentEvent == null) { return; } //if (OVRInput.GetUp(SKIP_BUTTON)) skip = true; if (delayProc > 0) { delayProc -= Time.deltaTime; return; } if (toStartEvent) { toStartEvent = false; skip = false; currentEvent.StartEvent(); } else { currentEvent.UpdateEvent(); if (currentEvent.CheckPassEventCondition()) { currentEvent.StopEvent(); delayProc = currentEvent.GetDelayNextEvent(); currentEvent = currentEvent.NextEvent(); toStartEvent = true; } } if (skip) { currentEvent.Skip(); skip = false; } }