Ejemplo n.º 1
0
    private void Start()
    {
        CoroutineRuntimeTrackingConfig.EnableTracking = true;
        this.StartCoroutine(RuntimeCoroutineStats.Instance.BroadcastCoroutine());
        this.SendEditorCommand("AppStarted");
        ((Component)this).get_gameObject().AddComponent <TestPluginRunner>();
        // ISSUE: reference to a compiler-generated field
        if (SampleRunner.\u003C\u003Ef__mg\u0024cache0 == null)
        {
            // ISSUE: reference to a compiler-generated field
            // ISSUE: method pointer
            SampleRunner.\u003C\u003Ef__mg\u0024cache0 = new CoroutineStartHandler_IEnumerator((object)null, __methodptr(InvokeStart));
        }
        // ISSUE: reference to a compiler-generated field
        CoroutinePluginForwarder.InvokeStart_IEnumerator = (__Null)SampleRunner.\u003C\u003Ef__mg\u0024cache0;
        // ISSUE: reference to a compiler-generated field
        if (SampleRunner.\u003C\u003Ef__mg\u0024cache1 == null)
        {
            // ISSUE: reference to a compiler-generated field
            // ISSUE: method pointer
            SampleRunner.\u003C\u003Ef__mg\u0024cache1 = new CoroutineStartHandler_String((object)null, __methodptr(InvokeStart));
        }
        // ISSUE: reference to a compiler-generated field
        CoroutinePluginForwarder.InvokeStart_String = (__Null)SampleRunner.\u003C\u003Ef__mg\u0024cache1;
        CoroutineSpawner coroutineSpawner = (CoroutineSpawner)((Component)this).get_gameObject().AddComponent <CoroutineSpawner>();

        RuntimeCoroutineTracker.InvokeStart((MonoBehaviour)coroutineSpawner, "Co01_WaitForSeconds", (object)null);
        RuntimeCoroutineTracker.InvokeStart((MonoBehaviour)coroutineSpawner, "Co02_PerFrame_NULL", (object)null);
        RuntimeCoroutineTracker.InvokeStart((MonoBehaviour)coroutineSpawner, "Co03_PerFrame_EOF", (object)null);
        RuntimeCoroutineTracker.InvokeStart((MonoBehaviour)coroutineSpawner, "Co04_PerFrame_ARG", (object)0.683f);
    }
Ejemplo n.º 2
0
    void Start()
    {
        // bootstrapping
        CoroutineRuntimeTrackingConfig.EnableTracking = true;
        StartCoroutine(RuntimeCoroutineStats.Instance.BroadcastCoroutine());

        SendEditorCommand("AppStarted");

        gameObject.AddComponent <TestPluginRunner>();

        CoroutinePluginForwarder.InvokeStart_IEnumerator = RuntimeCoroutineTracker.InvokeStart;
        CoroutinePluginForwarder.InvokeStart_String      = RuntimeCoroutineTracker.InvokeStart;

        CoroutineSpawner spawner = gameObject.AddComponent <CoroutineSpawner>();

        RuntimeCoroutineTracker.InvokeStart(spawner, "Co01_WaitForSeconds");
        RuntimeCoroutineTracker.InvokeStart(spawner, "Co02_PerFrame_NULL");
        RuntimeCoroutineTracker.InvokeStart(spawner, "Co03_PerFrame_EOF");
        RuntimeCoroutineTracker.InvokeStart(spawner, "Co04_PerFrame_ARG", 0.683f);
    }