Permalink
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 () { | |
} | |
} |