Пример #1
0
        protected override void Awake()
        {
            instance = this;

            UIOverlayCamera.SetActive(false);
            mapCamera.SetActive(false);

            miniMapTexture = new RenderTexture(Screen.width, Screen.height, 16, renderFormat);
            miniMapTexture.Create();
        }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     map = KS_Map.Instance;
     minimapRender.texture = map.MiniMapTexture;
     //map.EnableMinimap();
 }