Quantcast
Viewing latest article 2
Browse Latest Browse All 4

Answer by YikYikHeiHei

Are you want to show what is Update? If that, you should do this Debug.Log(Function) //<-- It should make Function. Unity Function can use in a var in javascript. var callFunction : Function; function Start () { callFunction = MainMenu; } function OnGUI () { callFunction(); } function MainMenu () { // Do something about main menu if (GUILayout.Button("Setting")) { callFunction = Setting; } } function Setting () { // Do something about setting if (GUILayout.Button("Main Menu")) { callFunction = MainMenu; } }

Viewing latest article 2
Browse Latest Browse All 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>