コード例 #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
ファイル: SaveToImage.cs プロジェクト: dbltnk/map-game
 // Start is called before the first frame update
 void Start()
 {
     cam = GetComponent <Camera>();
     vMM = MapGenGO.GetComponent <VisitedMapManager>();
     wOM = MapGenGO.GetComponent <WorldObjectManager>();
 }