- Home /
This question was
closed Jul 24, 2013 at 09:22 PM by
clunk47 for the following reason:
The question is answered, right answer was accepted
C# Making Functions Available to all Scripts
Hi everyone, is there a way to make a function available to all scripts without having to inherit from a certain script?
Comment
Best Answer
Answer by Eric5h5 · Dec 10, 2012 at 06:31 AM
If you're talking about MonoBehaviour, just make the function public, and use GetComponent. http://docs.unity3d.com/Documentation/ScriptReference/index.Accessing_Other_Game_Objects.html
Follow this Question
Related Questions
Saving final score and displaying on main menu 1 Answer
null texture passed to GUI.DrawTexture 0 Answers
How to Name Individual Buttons Within a List 2 Answers
c# Adjust In-Game audio 1 Answer