void SkillFrameStopStart() { //CancelInvoke("NormalAttackTimeScaleBegin"); //m_frameStopStartTime = Time.realtimeSinceStartup; //Time.timeScale = 0.0f; if (TimeScaleCore.SetValue(0)) { m_frameStopStartTime = Time.realtimeSinceStartup; } }
void OnDestroy() { if (m_frameStopTime > 0 || m_frameStopStartTime > 0) { //CoreEntry.gTimeMgr.TimeScale = 1f; TimeScaleCore.ResetValue(); m_frameStopTime = 0f; m_frameStopStartTime = 0f; } }
void OnDestroy() { if (m_frameStopTime > 0 || m_frameStopStartTime > 0) { //Time.timeScale = 1f; TimeScaleCore.ResetValue(); m_frameStopTime = 0f; m_frameStopStartTime = 0f; } }
void OnDisable() { if (m_frameStopTime > 0 || m_frameStopStartTime > 0) { TimeScaleCore.ResetValue(); m_frameStopTime = 0f; m_frameStopStartTime = 0f; } CancelInvoke("Start"); }
// PoolManager debug void OnDisable() { if (m_frameStopTime > 0 || m_frameStopStartTime > 0) { //CoreEntry.gTimeMgr.TimeScale = 1f; TimeScaleCore.ResetValue(); m_frameStopTime = 0f; m_frameStopStartTime = 0f; } CancelInvoke("Start"); }
void OnTimeScale() { if (!CoreEntry.gGameMgr.m_bScaleTime) { Time.timeScale = 0.05f; } else { TimeScaleCore.ResetValue(); } CoreEntry.gGameMgr.m_bScaleTime = !CoreEntry.gGameMgr.m_bScaleTime; }
void TimeScaleEnd() { CancelInvoke("TimeScaleEnd"); //Time.timeScale = 1f; TimeScaleCore.ResetValue(); if (m_actor.mActorType == ActorType.AT_BOSS) { StartCoroutine(delayShowEffect(transform.position)); return; } }
// Update is called once per frame void Update() { //顿帧 if (m_frameStopTime > 0f && m_frameStopStartTime > 0f) { if (m_frameStopTime < Time.realtimeSinceStartup - m_frameStopStartTime) { //Time.timeScale = 1f; TimeScaleCore.ResetValue(); m_frameStopTime = 0f; m_frameStopStartTime = 0f; } } }