Skip to content
Permalink
13bc366381
Go to file
 
 
Cannot retrieve contributors at this time
23 lines (17 sloc) 507 Bytes
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 () {
}
}
You can’t perform that action at this time.