示例#1
0
    public void OnClickEvaluate()
    {
        if (string.IsNullOrEmpty(scriptInput.text))
        {
            return;
        }

        DoggoScript.Run(scriptInput.text);
    }
示例#2
0
 void OnGUI()
 {
     GUILayout.BeginVertical();
     src = GUILayout.TextArea(src);
     if (GUILayout.Button("Run"))
     {
         DoggoScript.Run(src);
     }
     GUILayout.EndVertical();
 }
示例#3
0
 void Start()
 {
     DoggoScript.Run("#(Player).hp;");
 }