Skip to content

Instantly share code, notes, and snippets.

View chyyran's full-sized avatar
💮
大変よくできました!

Ronny Chan chyyran

💮
大変よくできました!
View GitHub Profile
using UnityEngine;
using System.Collections;
public class NewBehaviourScript : MonoBehaviour {
private Texture2D myGUITexture; //This Texture2D is a member of NewBehavviourScript
//private means that myGUITexture can only be accessed from the NewBehaviourScript class
void Start(){
this.myGUITexture = (Texture2D)Pong.Textures.Load("map1.jpg");