Click here to Skip to main content
15,885,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
#pragma strict
var resume : GUITexture;
var resume_tex : Texture2D[];
var pauseMenu : GUITexture;
var click : AudioClip;

function Start () {

}

<pre>function Update () {
//if (Input.touchCount>0) {
//    for (var touch : Touch in Input.touches) {
//    
//    
//     if (touch.phase == TouchPhase.Began){
//     
//     if (play.HitTest(touch.position)) {
//       	play.texture = play_tex[1];
//       	   
//		Application.LoadLevel("QuickPlay");
//	
//       	
//       }       
//           	                                                                                                                                  
//                                                                                                                                
//                      
//       }
//      if (touch.phase == TouchPhase.Ended){
//       	play.texture = play_tex[0]; 
//         
//     }  
//      
//        }
//       
//       
//       }

}

function OnMouseUp(){
resume.texture = resume_tex[0];
Time.timeScale = 1;
pauseMenu.active = false;


}
function OnMouseDown(){
GetComponent.<audiosource>().PlayOneShot(click);
 resume.texture = resume_tex[1];



}

What I have tried:

I don't know how to solve this error
Posted
Updated 14-Nov-17 3:24am

1 solution

"I don't know how to solve this error"

The error message tells you exactly what to do: use a non-static member to access active.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900