Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Character selection

Discussion in 'Scripting' started by joacoerazo_legacy, May 3, 2006.

  1. joacoerazo_legacy


    Apr 5, 2006
    Hi to all,

    I want to make a screen to select the player character, it is too dificult to do it in Unity?
    Any Idea on how to do that?

    I mean, in the screen you select one of two teams (blue and red) and inside each team you select your character (fast character and slow character). How the code looks like?

    Thank you in advance
  2. jeremyace


    Oct 12, 2005
    The code would really be dependant on the exact look and function of your system. There is sample code on the wiki for buttons that will help you a fair bit, but the rest of the work is managing all the states.

    It would be very good to map out every single button and selection before you write a line of code. Then it's if-then-else or switch statments.

    I suggest you completely design your menu system, then figure out how you want the player to use it. We can be more help then giving help on doing individual things. ;)