RealTime.cs 240 B

123456789101112131415161718192021
  1. using System;
  2. using UnityEngine;
  3. public class RealTime : MonoBehaviour
  4. {
  5. public static float time
  6. {
  7. get
  8. {
  9. return Time.unscaledTime;
  10. }
  11. }
  12. public static float deltaTime
  13. {
  14. get
  15. {
  16. return Time.unscaledDeltaTime;
  17. }
  18. }
  19. }