#pragma warning restore 414 #if UNITY_EDITOR private void Update() { if (m_Target) { m_CurrentDifficulty = m_Target.DifficultyMultiplier; m_CurrentSpeed = m_Target.CurrentSpeed; m_DebugDifficulty = m_Target.EvaluateDifficulty(m_DebugTime); m_DebugSpeed = m_Target.EvaluateSpeed(m_DebugTime); } else { m_Target = GetComponent <GameplayDifficulty>(); } }
public static void ResetToDefault() { currentGameplayDifficulty = GameplayDifficulty.Medium; }