// Update is called once per frame void Update() { if (PlanetManager.GetState() == 2) { transform.position = camera_pos2 + calcPos(Player.transform.position, (new Vector3(1, 1, 0))); } }