// Use this for initialization void Awake() { tileManager = GetComponent<TileManager> (); playerManager = GetComponent<PlayerManager> (); source = gameObject.GetComponent<AudioSource>(); //Centre camera on middle of tiles Vector2 cameraPos = tileManager.GetCentrePoint (); gameCam.SetPosition(new Vector3 (cameraPos.x, cameraPos.y, gameCam.transform.localPosition.z)); }