Question by
W7nk · Sep 02, 2020 at 08:02 PM ·
scripting problemscript.
Assigning a PreFab to a pre existing variable.
Im trying to assign a PreFab to a pre-existing GameObject variable through a script and I cant seem to figure it out.
if(CharacterSelection.selectedCharater.name == "PlayerTurn_Test1"){
playerTank = Resources.Load("SpawnablePrefabs/Pre Fab/Player PreFabs/NormalPlayerTank");
}
I Just don't know what to put after the equal sign.
Comment