private void Start() { currentScene = SceneManager.GetActiveScene(); if (currentScene.name == "Farm_design") { //gets managers local to scene to work with managersLocalToScene = GameObject.Find("ManagersLocalToScene"); FarmUI = managersLocalToScene.GetComponent <FarmUIManager>(); //gets main camera in scene when instancing this object - gets script for camera snapping //mainCamera = GameObject.Find("MainCamera"); cameraSnapScript = mainCamera.GetComponent <CameraFarmMovement>(); } }
// Start is called before the first frame update void Start() { DefaultCameraPositionSet(); farmUIManager = FarmUI.GetComponent <FarmUIManager>(); }