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

        mainCamera.CurrentSelectedObject = _solarSystems.First().GetComponent <SolarSystem>().Star.gameObject;
    }
Ejemplo n.º 2
0
 void Awake()
 {
     // Initialize
     speechBubble.SetActive(false);
     cameraController = GameObject.FindGameObjectWithTag("GameController").GetComponent <MapCameraController>();
     SuccessCheck();
 }
Ejemplo 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>();
 }
Ejemplo 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);
	}
Ejemplo n.º 5
0
 void Awake()
 {
     cameraController = this.GetComponent <MapCameraController> ();
 }
Ejemplo n.º 6
0
	// Use this for initialization
	void Start () {
		cityMenu = GameObject.Find ("CityMenu");
		mapCamera = Camera.main.GetComponent<MapCameraController> ();
	}
Ejemplo n.º 7
0
 void Awake()
 {
     cameraController = GameObject.FindGameObjectWithTag("GameController").GetComponent <MapCameraController>();
 }