private void Start() { vMM = GetComponent <VisitedMapManager>(); wOM = GetComponent <WorldObjectManager>(); rT = new RenderTexture(Data.HeightMapWidth, Data.HeightMapHeight, 16, RenderTextureFormat.ARGB1555); rT.Create(); }
// Start is called before the first frame update IEnumerator Start() { img = GetComponent <Image>(); VisitedMapManager vMM = MapGenGO.GetComponent <VisitedMapManager>(); while (vMM.VisitedTex == null) { yield return(null); } overrideSprite = Sprite.Create(vMM.VisitedTex, new Rect(0.0f, 0.0f, vMM.VisitedTex.width, vMM.VisitedTex.height), new Vector2(0.5f, 0.5f), 1.0f); }
// Start is called before the first frame update void Start() { cam = GetComponent <Camera>(); vMM = MapGenGO.GetComponent <VisitedMapManager>(); wOM = MapGenGO.GetComponent <WorldObjectManager>(); }