Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Magnotta

Pages: [1]
1
NGUI 3 Support / Re: using NGUI with javascript
« on: June 21, 2014, 07:28:57 AM »
Ok I've solved it, I placed in the Scripts folder in the NGUI folder instead of Plugins folder

2
NGUI 3 Support / Re: using NGUI with javascript
« on: June 20, 2014, 07:00:28 AM »
Sorry men for this question, how can i declare the UILabel in a Javascript after doing this? What's the problem in my script? If I use var myLabel : UILabel; I get this error "The name 'UILabel' does not denote a valid type ('not found')."  :( THANKS FOR THE HELP!


#pragma strict

var niceTime : String;
var seconds : int;
var myLabel : UILabel;
var myTimer : float = 80.0f;
var i : int;

function Update () {

for(i = 30; i > 0; i--){
         seconds = Mathf.FloorToInt(i);
         
         niceTime = String.Format("{00}", seconds);
         myLabel.text= niceTime;
}
}

Pages: [1]