How to execute certain code based on game mode the player chooses
Im currently developing a game that has many different modes the player can enter in such as a horde mode, story mode and free run mode, which they access through the main menu. For example in horde mode I dont want the player to have the ability to wall run but in free run mode I do. Do all abilities and components that I want removed or added based on the mode need to be in separate scripts? How do i go about accomplishing this?
Answer by idan48 · Nov 04, 2020 at 07:25 AM
i believe you have to build diefferent scenes for each game mode. from what i understand about your game, you should have scripts that are identical between the scenes (player movement for example), and some scripts will be diefferent (spawn manager for example).
but what if my player controller has references from mechanics of the horde mode that i dont need to use in free run mode? @idan48
Your answer

Follow this Question
Related Questions
I need to kill bots when I shoot on them.I am not good on scripting, but I made my best. 1 Answer
[C#] Can't Control Movement While Jumping 0 Answers
how to get started with unity, while making a simple walking around games 1 Answer
How to open and view a .fpk file,How do I open a .fpk file to view the assets? 0 Answers
how do i take whats on one UI canvas and make it apear on another in real time(for a card game) 0 Answers