static void Spawn () { GameObject go = new GameObject("_RealTime"); DontDestroyOnLoad(go); mInst = go.AddComponent<RealTime>(); mInst.mRealTime = Time.realtimeSinceStartup; }
static void Spawn() { GameObject go = new GameObject("_RealTime"); DontDestroyOnLoad(go); mInst = go.AddComponent <RealTime>(); mInst.mRealTime = Time.realtimeSinceStartup; }