Exemple #1
0
        private static void Initialize()
        {
            if (updater)
            {
                return;
            }
            var obj = new GameObject("Agony.Common.Updater");

            updater = obj.AddComponent <MonoUpdater>();
        }
 private void OnDisable()
 {
     MonoUpdater.Unsubscribe(this);
 }
 private void OnEnable()
 {
     MonoUpdater.Subscribe(this, FrameUpdate);
 }