Hi…
I have implemented an eventManager script “js_eventManagerScript”, that script contains many functions, but not all of them are used at the same time… for instance:
function ChangeBGColor (theColor : Color){
var bgObject : GUITexture = GameObject.Find("GUI/bgObject").GetComponent(GUITexture);
bgObject.texture.color = theColor;
}
//many other functions like above
the function above is not loaded every frame and not called on Start or Awake… my question is:
is the ChangeBGColor function loaded even if i haven´t called it? because i have 25 functions in a script, they are only called in certains moments (not all the time)… but if they are wasting memory, so, i must to think in another solution.
Thanks