Advice practice for scripting
Hi, I'm a new developer in the world of Unity and i want to ask you advice in practice of scripting. In Flash or Haxe, i have habits to write everything... button creation, listeners, animations... Lot of pain but a total control on how my code work and how is made. With Unity we have a great IDE but if i write one script to control all gameobjets in current scene, it's that a correct way ? Little example : i have a Canvas for my Menu UI. Great, i've created all of stuff, butto, background, slider in IDE and that's cool. But now i must script this to work correctly. Do i create a script for each button and put it like a component or one single script to rules them all is a good practice ? And if i choose the second solution, how i can access to a button ?
m_startButton = GameObject.Find("start_Button").GetComponent<Button>();
m_startButton.onClick.AddListener(onStartButton);
Thanks for your help