I know there is an attribute to make a script execute in editor, but, how can i do to, cleanly, make the script execute just when in editor mode and not while running the game?
Nevermind, found it!
I just used:
if(!Application.isPlaying)
{
// code here for Editor only
}