public static SamplerUpdater GetInstance() { if (_instance == null) { _instance = new SamplerUpdater(); #if !UNITY_EDITOR StateUpdater.CreateGameObject(_instance.Update, UpdaterGOName); #endif } return(_instance); }
private void OnDisable() { SamplerUpdater.GetInstance().Unregister(this); }
private void OnEnable() { SamplerUpdater.GetInstance().Register(this); }