private void Awake()
        {
            if (instance_ != null)
            {
                this.LogError("Already have an instance of Trigger executor!");
                DestroyImmediate(this);
                return;
            }

            instance_ = this;

            settings_ = CyanEmuSettings.Instance;

            bufferManager_ = new CyanEmuBufferManager();

            if (settings_.replayBufferedTriggers)
            {
                CyanEmuBufferManager.LoadBufferedTriggersFromFile();
            }
        }
Ejemplo n.º 2
0
        private void Awake()
        {
            if (instance_ != null)
            {
                this.LogError("Already have an instance of Trigger executor!");
                DestroyImmediate(this);
                return;
            }

            instance_ = this;

            settings_   = CyanEmuSettings.Instance;
            descriptor_ = FindObjectOfType <VRC_SceneDescriptor>();

            bufferManager_ = new CyanEmuBufferManager();

            if (settings_.replayBufferedTriggers)
            {
                CyanEmuBufferManager.LoadBufferedTriggersFromFile();
            }

            SetupCombat();
        }
Ejemplo n.º 3
0
 public CyanEmuBufferManager()
 {
     instance   = this;
     eventList_ = new LinkedList <VRC_EventHandler.EventInfo>();
 }