menu item and add gadjet

creating our own menu bar in the game and add menu item like next,continue,play,exit.I want menu bar like a task bar like in computer and add item like play ,exit, continue to it when we click action should happen is it possible can u give the sample code for that

1 Answer

1

Of course it is possible to do this you must use GUI, and create a condition with a GUI button, for example:

if (GUI.Button (Rect (160, 400, 180, 40), "Start Game")) { / / Code to make the game starts / / Example: Application.LoadLevel (Level to be loaded "); }

read more in its documentation, menu Help> Scripting Reference

Hope this helps