Snippets

David Fraj Unimos el Interface UI con las variables staticas

Created by David Fraj
using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class InterfaceStone : MonoBehaviour {

	public Text textThrown;
	public Text textDestroyed;

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		textThrown.text = "Number of Stones :" + GameManager.currentNumberStonesThrown;
		textDestroyed.text = "Destroyed :" + GameManager.currentNumberDestroyedStones;
	}
}

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.