Esempio n. 1
0
    protected void Start()
    {
        PlaceSolarSystems(GetSolarSystemLocations());
        MapCameraController mainCamera = Camera.main.GetComponent <MapCameraController>();

        mainCamera.CurrentSelectedObject = _solarSystems.First().GetComponent <SolarSystem>().Star.gameObject;
    }
Esempio n. 2
0
 void Awake()
 {
     // Initialize
     speechBubble.SetActive(false);
     cameraController = GameObject.FindGameObjectWithTag("GameController").GetComponent <MapCameraController>();
     SuccessCheck();
 }
Esempio n. 3
0
 //Load all scripts that will be controlled by scene flow controller
 void GetScripts()
 {
     audioCS        = GameObject.FindGameObjectWithTag("AudioController").GetComponent <AudioControlScript>();
     dialogueScript = dialogueUI.GetComponent <DialogueHandler>();
     mapScript      = GameObject.FindGameObjectWithTag("GameController").GetComponent <OverworldMapControl>();
     camScript      = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <MapCameraController>();
 }
Esempio n. 4
0
	// Use this for initialization
	void Start () {
		cityMenu = GameObject.Find("CityMenu");
		mapCamera = Camera.main.GetComponent<MapCameraController> ();
		cameraTargetPosition = new Vector3 (gameObject.transform.position.x, Camera.main.transform.position.y, gameObject.transform.position.z-30);
	}
Esempio n. 5
0
 void Awake()
 {
     cameraController = this.GetComponent <MapCameraController> ();
 }
Esempio n. 6
0
	// Use this for initialization
	void Start () {
		cityMenu = GameObject.Find ("CityMenu");
		mapCamera = Camera.main.GetComponent<MapCameraController> ();
	}
Esempio n. 7
0
 void Awake()
 {
     cameraController = GameObject.FindGameObjectWithTag("GameController").GetComponent <MapCameraController>();
 }