using UdonSharp; using UnityEngine; /// /// Code from MerlinVR, edited by Reimajo. /// Can be publicly found here: https://gist.github.com/MerlinVR/2da80b29361588ddb556fd8d3f3f47b5 /// For this script only: /// MIT License /// Copyright (c) 2021 Merlin /// namespace NOT_ReimajoBoothAssets //namespace was added here so that it doesn't conflict with your own classes { [DefaultExecutionOrder(-1000000000)] public class GlobalProfileKickoff : UdonSharpBehaviour { [System.NonSerialized] public System.Diagnostics.Stopwatch stopwatch; private void Start() { stopwatch = new System.Diagnostics.Stopwatch(); } private void FixedUpdate() { stopwatch.Restart(); } private void Update() { stopwatch.Restart(); } private void LateUpdate() { stopwatch.Restart(); } } }