x


Script problem Color Match

if( GUI.Box( rect, firstBoxTexture ) )
{
   // Drag
   if( firstBoxTexture != null )
   {
      currentTexture = firstBoxTexture;
      firstBoxTexture = null;
   }
   // Drop
   else
   {
      firstBoxTexture = currentTexture ;
      currentTexture = null;
   }
}

what kind of condition i will put if needed the firstboxtexture=yellow then my 2nd boxtexture=white when i drag the firstbox=yellow to the 2ndbox=white the 2ndbox will change to yellowbox and if its wrong the scene will restart..

more ▼

asked Aug 18 '12 at 08:30 AM

GorgeousApril gravatar image

GorgeousApril
-4 1 3

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5049

asked: Aug 18 '12 at 08:30 AM

Seen: 138 times

Last Updated: Aug 18 '12 at 08:30 AM