Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

How to Switch Characters????

Discussion in 'Scripting' started by srini5731, May 25, 2020.

  1. srini5731

    srini5731

    Joined:
    Apr 17, 2020
    Posts:
    2



    Basically I am making This above mentioned game,but i cant seem to figure out how to switch between characters??.


    Thanks.
     
  2. csofranz

    csofranz

    Joined:
    Apr 29, 2017
    Posts:
    1,556
    Agreed.

    You are welcome.

    Better response available if you submit a better question.
     
  3. srini5731

    srini5731

    Joined:
    Apr 17, 2020
    Posts:
    2
    i am trying to switch between two characters using a key or button while one character is controlled by us the other one stays idle in the game
     
  4. csofranz

    csofranz

    Joined:
    Apr 29, 2017
    Posts:
    1,556
    Please show the code that does not work. Tell us what you are doing in the code, and why, what you expect to see, and what you see instead. That usually is enough so we can help you.
     
  5. brigas

    brigas

    Joined:
    Oct 4, 2014
    Posts:
    522
    put the same scripts in both characters but disable the controls in 1 of them when you want to control the other