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

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