Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Start () {
- thoughtText.font.material.color.a = 0;
- }
- var thoughtText : GUIText;
- function OnTriggerEnter (other : Collider) {
- if (other.gameObject.name == "Shed Thoughts"){
- thoughtText.text = "Oh lord";
- thoughtText.font.material.color.a += Time.deltaTime;
- Debug.Log("Works better");
- }
- }
- function OnTriggerExit (other : Collider) {
- thoughtText.text = "";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement