Quantcast
Channel: Answers by "moha"
Browsing latest articles
Browse All 12 View Live

Answer by moha

You can put a texture on your GuiButton. http://docs.unity3d.com/Documentation/ScriptReference/GUI.Button.html

View Article



Answer by moha

You can put the script on your camera or in an empty gameobject. then you call the function which select the item from a script on you monster : script on empty GameObject: int[,] mytab = int[2,3]...

View Article

Answer by moha

you can define a new Rect for the top of your screen and test if the position of the touch is contain or not in the rect. http://docs.unity3d.com/Documentation/ScriptReference/Rect.Contains.html

View Article

Answer by moha

use transform.localPosition to get the the object position in its parent space.

View Article

Answer by moha

or you can use a coroutine with a waitforsecondes() in it

View Article


Answer by moha

you can create a guigroup. in this group you put your interface. then you can move the group Rect with a vector2.lerp or increasing its size when you click on a button: if(GUI.button(...) &&...

View Article
Browsing latest articles
Browse All 12 View Live




Latest Images