- Home /
Question by
decamonos1 · Aug 08, 2012 at 03:41 AM ·
variablefunctiongenericchanging
How to put a generic value on a function, or in another script?
I am making an in depth magic system and need to be able to call a generic value from another function in my magic script, or from another script as the way it is going to work is for three generic values to define a spell( word one has effect one, word two has effect two, using them together is equivalent to effect1+effect2). How would I reference a value from inside a function? Or how would I make it so that I don't need one script for each magic word.
Comment
Your answer
Follow this Question
Related Questions
Accessing a variable within a function.... GetComponent() 2 Answers
Function Parameter, array / random type 1 Answer
Help with UnityException Error 1 Answer
Problem with increasing a variable 1 Answer