//------------------------------------------------------------------- void Start() { sun = GameObject.Find("sun"); ship = GameObject.Find("ship"); // gravity beam gravityBeam = GameObject.Find("gravityBeam").GetComponent<gravityBeam>(); anim = GetComponent<planetAnimation>(); scoring = GameObject.Find("setup").GetComponent<scoring>(); // settings tinker = GameObject.Find("tinker").GetComponent<tinker>(); // debug debugScript = (debug)GameObject.Find("debug").GetComponent(typeof(debug)); }
void Start() { tinker = GameObject.Find("tinker").GetComponent<tinker>(); phoneMessaging = GameObject.Find("messages").GetComponent<phoneMessages>(); scoring = GameObject.Find("setup").GetComponent<scoring>(); sound = GameObject.Find("planets").GetComponent<planetSound>(); anim = GetComponent<planetAnimation>(); planetInit = GetComponent<planetInit>(); allPlanets = GameObject.FindGameObjectsWithTag("Planet"); }