From 5e6da47196efaaa2bef792bad1943a78b4574e62 Mon Sep 17 00:00:00 2001 From: Chris Gregan Date: Fri, 22 Apr 2016 13:57:02 +0100 Subject: [PATCH] Removed timeScale --- .../Thirdparty/FungusLua/Scripts/LuaUtils.cs | 34 +------------------ 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaUtils.cs b/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaUtils.cs index 7f86a49c..5d1378a3 100644 --- a/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaUtils.cs +++ b/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaUtils.cs @@ -393,39 +393,7 @@ namespace Fungus { return stringSubstituter.SubstituteStrings(input); } - - /// - /// Returns the time since level load, multiplied by timeScale. - /// If timeScale is negative then returns the same as Time.timeSinceLevelLoaded. - /// - public float GetTime() - { - if (timeScale < 0f) - { - return Time.timeSinceLevelLoad; - } - else - { - return Time.unscaledTime * timeScale; - } - } - - /// - /// Returns the delta time this frame, multiplied by timeScale. - /// If timeScale is negative then returns the same as Time.deltaTime. - /// - public float GetDeltaTime() - { - if (timeScale < 0f) - { - return Time.deltaTime; - } - else - { - return Time.deltaTime * timeScale; - } - } - + /// /// Find a game object by name and returns it. ///