コード例 #1
0
 static void Spawn()
 {
     GameObject go = new GameObject("_UnScaledTime");
     DontDestroyOnLoad(go);
     Instance = go.AddComponent<UnScaledTime>();
     Instance.RealTime = Time.realtimeSinceStartup;
 }
コード例 #2
0
ファイル: UnScaledTime.cs プロジェクト: eyesno/vanitymetrics
 static void Spawn()
 {
     GameObject go = new GameObject("_UnScaledTime");
     DontDestroyOnLoad(go);
     Instance = go.AddComponent<UnScaledTime>();
     Instance.RealTime = Time.realtimeSinceStartup;
 }