using UnityEngine;using System.Collections; public class TotalScore : MonoBehaviour { public int tempScore=0; // Update is called once per frame void Update () { tempScore += GetComponent<Score> ().counter; }}
Standard input is empty
Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python2.7/py_compile.py", line 117, in compile raise py_exc py_compile.PyCompileError: File "prog.py", line 1 using UnityEngine; ^ SyntaxError: invalid syntax
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!