Help with 2d fighting game

Hi guys, Sorry to bother you, I’m studying how to make a game in unity 2D and i was asking this: how make a character have a script to being controlled by the player and by CPU?
I try to explain It better, i do the selection screen with 2 character(for example Goku and vegeta from Dragonball). How Can i make a script that allows the character to being controlled by the player when he select him and have an enemy ia when the player doesn’t?

PS Sorry for my bad english

Hi there. Have you gone through some basic tutorials from Unity, yet?

I would advise that you try some, and get some experience before trying to jump into a game of your own. Work your way towards it.

hi