Hey guys! I know this sounds strange, but i have been working on an RPG that i am planning to release as a complete project for beginners to have a base. I am trying to make everything as compact, performance efficient and easy to understand as possible, but i am having a problem with making something.
I want to make a SINGLE SCRIPT that will be some kind of Quest Manager. Everytime the player talks about a specific thing with a specific NPC, the game is supposed to notify this Quest Manager with an ID. The Quest Manager will then proceed to verify if he has such ID on a list, and then activate a specific quest script based on the list’s number.
Problem is, as far as i know, the only way to reference a script is to use the script’s name as a type itself, so i can’t just code something like public C#Script[] database
. So what am i asking is, Is there any way that i can make an array of C# Scripts? Like the normal arrays that you can make with GameObjects or AudioSources for an example. If there is, please explain how would i do it or link a tutorial or something. Any help would be appreciated, thanks!