Hello guys.
Basically, there are many different scripts, for example : ScriptA, ScriptB, ScriptC…and there’s one script which gathers all the information, for example - ScriptALL.
If ScriptA activates - I want it to send all information about the gameobject (which is done already), except the class itself.
For example:
1.ScriptA:
void Start(){
ScriptALL.GatherInformation(Variable01,Variable02, Variable03, this)
}
2.ScriptALL:
static public void GatherInformation(int var01, string var02, float var03, ???){
…
???.Variable01++;
???.Variable02–;
???.Otherstuff…;
…
}
3. ScriptB:
void Start(){
ScriptALL.GatherInformation(Variable01,Variable02, Variable03, this)
}
4. ScriptALL:
static public void GatherInformation(int var01, string var02, float var03, ???){
…
???.Variable01++;
???.Variable02–;
???.Otherstuff…;
…
}
And so on… Is it possible to have a variable in a GatherInformation, WHICH IS A CLASS? It would be easy
if the class would not vary, but now I have many different classes to transfer. Any suggestions? Really need to solve it!Thanks!