Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class HelloWorld : MonoBehaviour {
public GameObject block;
public Text text;
// Use this for initialization
void Start () {
text = GetComponent<Text>();
GameObject spawn = Instantiate(block, new Vector3(0, 0, 0), Quaternion.Euler(0,0,-180.0f)) as GameObject;
Debug.Log("Hello World");
text.text = "Hello World";
}
// Update is called once per frame
void Update () {
}
}