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