// unity event handlers void StartDialog(CC_GUI ccgui) { m_Dialog = ccgui; enabled = true; AnimationState animState = CutsceneController.GetAnimState(m_Dialog.CC); m_prevAnimSpeed = animState.speed; animState.speed = m_SetAnimSpeed; //stop the anim m_TimeSinceDialogStart = 0f; m_scrollPos = Vector2.zero; }
void StartDialog(CC_GUI ccgui) { if (m_Tex == null) { Dbg.LogWarn("CC_Unity_Texture: no texture specified, do nothing: {0}", name); enabled = false; return; } //m_Dialog = ccgui; enabled = true; m_TimeSinceStart = 0f; }
// unity event handlers void StartDialog(CC_GUI ccgui) { //Dbg.Log("Start QTE: {0}: time: {1}", ccgui.name, CutsceneController.GetAnimState(ccgui.CC).time); m_Dialog = ccgui; enabled = true; //AnimationState animState = CutsceneController.GetAnimState(m_Dialog.CC); m_prevTimeScale = Time.timeScale; Time.timeScale = m_SetTimeScale; //stop the anim m_TimeSinceDialogStart = 0f; m_expectedIdx = UnityEngine.Random.Range(0, m_QTEDesc.m_RandomInputs.Count); }
void StartDialog(CC_GUI ccgui) { //m_Dialog = ccgui; //Dbg.Log("Start NormalDialog: {0}", m_Dialog.name); enabled = true; //AnimationState animState = CutsceneController.GetAnimState(m_Dialog.CC); //m_prevTimeScale = animState.speed; //animState.speed = m_SetTimeScale; //stop the anim m_prevTimeScale = Time.timeScale; Time.timeScale = m_SetTimeScale; m_ParagraphIdx = 0; m_TimeSinceParagraphStart = 0f; }