Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.34 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class testScript : MonoBehaviour {
  6.  
  7. public Color testColor = new Color();
  8.  
  9.     // Use this for initialization
  10.     void Start () {
  11.         gameObject.renderer.material.color = testColor;
  12.  
  13.     }
  14.    
  15.     // Update is called once per frame
  16.     void Update () {
  17.        
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement