Пример #1
0
 // Start is called before the first frame update
 public void OnValueChanged()
 {
     if (!changed)
     {
         TextInputInstantiator.InstantiateText(this.transform.parent);
         changed = true;
     }
 }
Пример #2
0
    public void RunTest()
    {
        string source = ConnectionManager.ToCode(initBlock.GetComponent <RectTransform> ()) + "}}}";

        ///teste
        //string source = "using System;using System.Collections.Generic;using UnityEngine;using System.Text;namespace teste { class MazeCode {int _i = 0;string _output = \"\";List<int> _inputs = new List<int>() {};void teste(){var a = 3.0f;a = float.Parse (\"3\");a = a*a/6f;_output += a;}}}";
        StartCoroutine(RunAsync(source, outputText, TextInputInstantiator.ToListInt(ListParent), TextInputInstantiator.ToListFloat(ListParent)));
    }