protected override void OnEnable() { base.OnEnable(); if(shower == null){ shower = new AutoTileShowerHelper(); shower.loadTextures(); }else{ loadTextures(); } }
protected override void OnEnable() { base.OnEnable(); if (shower == null) { shower = new AutoTileShowerHelper(); shower.loadTextures(); } else { loadTextures(); } }
void loadTextures() { Sprite[] sprites = Resources.LoadAll <Sprite>("MapLoader/autotileExemple"); previewTextures = TextureUtils.texturesFromSprites(sprites); shower.loadTextures(); }