Пример #1
0
 private void Start()
 {
     vMM = GetComponent <VisitedMapManager>();
     wOM = GetComponent <WorldObjectManager>();
     rT  = new RenderTexture(Data.HeightMapWidth, Data.HeightMapHeight, 16, RenderTextureFormat.ARGB1555);
     rT.Create();
 }
Пример #2
0
    // 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);
    }
Пример #3
0
 // Start is called before the first frame update
 void Start()
 {
     cam = GetComponent <Camera>();
     vMM = MapGenGO.GetComponent <VisitedMapManager>();
     wOM = MapGenGO.GetComponent <WorldObjectManager>();
 }