Search Unity

Button

Discussion in 'General Discussion' started by inflame, Mar 26, 2015.

  1. inflame

    inflame

    Joined:
    Jul 31, 2014
    Posts:
    24
    help convert button. It is necessary to make a separate login button. but now when you click on the name of the character comes into play.

    Code (CSharp):
    1. if(GUILayout.Button(player.Name)){
    2.                                 SendSelectedPlayer(player.Name);
    3.                                 UnregisterSFSSceneCallbacks();
    4.                                 Application.LoadLevel("game");
    5.                         }
     
  2. inflame

    inflame

    Joined:
    Jul 31, 2014
    Posts:
    24
    needs to be done as a separate button on the photo Enter the game/
     
  3. inflame

    inflame

    Joined:
    Jul 31, 2014
    Posts:
    24
  4. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,784
    You are probably better off trying in the scripting section. Or better yet the UI section.
     
  5. Ostwind

    Ostwind

    Joined:
    Mar 22, 2011
    Posts:
    2,806
    Move the loadlevel line to another button code you made, but anyways like been said:

    "General Discussion
    This is NOT a support forum, for technical help post in the correct forum. Chat about Unity & game development."
     
unityunity