using System.Collections; using System.Collections.Generic; using UnityEngine; public class Gamification_MinimapCamera : MonoBehaviour { Transform player; public Vector2 dif = new Vector2(0, 0); // Start is called before the first frame update void Awake() { player = GameObject.Find("Player").GetComponent(); } // Update is called once per frame void FixedUpdate() { transform.position = Vector2.Lerp(transform.position, (Vector2)player.position + dif, .05f); } }