Esempio n. 1
0
 // Start is called before the first frame update
 void Start()
 {
     meteorController = GameObject.FindGameObjectWithTag("MeteorController").GetComponent <MeteorController>();
     meteorController.ControllerStart();
     hexController = GameObject.FindGameObjectWithTag("HexController").GetComponent <HexController>();
     hexController.ControllerStart();
     planetController = GameObject.FindGameObjectWithTag("Planet").GetComponent <PlanetController>();
     planetController.ControllerStart();
     cloudController = GameObject.FindGameObjectWithTag("CloudController").GetComponent <CloudController>();
     cloudController.ControllerStart();
 }
Esempio n. 2
0
 // Start is called before the first frame update
 void Start()
 {
     if (!(meteorController = GameObject.FindGameObjectWithTag("MeteorController").GetComponent<MeteorController>()))
         meteorController.ControllerStart();
     if (!(hexController = GameObject.FindGameObjectWithTag("HexController").GetComponent<HexController>()))
         hexController.ControllerStart();
     if (!(planetController = GameObject.FindGameObjectWithTag("Planet").GetComponent<PlanetController>()))
         planetController.ControllerStart();
     if (!(cloudController = GameObject.FindGameObjectWithTag("CloudController").GetComponent<CloudController>()))
         cloudController.ControllerStart();
     if (!(hexViewController = GameObject.FindGameObjectWithTag("HexViewController").GetComponent<HexViewController>()))
        hexViewController.ControllerStart();
     if (!(sunController = GameObject.FindGameObjectWithTag("SunController").GetComponent<SunController>()))
         sunController.ControllerStart();
     Debug.Log(sunController.name);
 }