This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); |