Skip to content

Instantly share code, notes, and snippets.

@chyyran
Last active August 29, 2015 13:57
Show Gist options
  • Save chyyran/9676544 to your computer and use it in GitHub Desktop.
Save chyyran/9676544 to your computer and use it in GitHub Desktop.
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");
}
// Update is called once per frame
void Update () {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment