protected override void Awake() { instance = this; UIOverlayCamera.SetActive(false); mapCamera.SetActive(false); miniMapTexture = new RenderTexture(Screen.width, Screen.height, 16, renderFormat); miniMapTexture.Create(); }
// Use this for initialization void Start() { map = KS_Map.Instance; minimapRender.texture = map.MiniMapTexture; //map.EnableMinimap(); }