Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.27 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5.  
  6. public class Color : MonoBehaviour {
  7.  
  8.     public Text text;
  9.  
  10.     void OnCollisionEnter(Collision Col){
  11.         if (Col.gameObject == "Player")
  12.             text.color = color.black;
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement