标签:style blog io ar color sp for on div
using UnityEngine; using System.Collections; public class TestHUText : MonoBehaviour { private HUDText text; // Use this for initialization void Start () { text = this.GetComponent<HUDText>(); } // Update is called once per frame void Update () { if (Input.GetMouseButtonDown(0)) { text.Add(-10, Color.red, 1f); } if (Input.GetMouseButtonDown(1)) { text.Add(10,Color.green,1f); } } }
标签:style blog io ar color sp for on div
原文地址:http://www.cnblogs.com/heisaijuzhen/p/4126836.html