コード例 #1
0
 protected override void OnEnable()
 {
     base.OnEnable();
     if(shower == null){
         shower = new AutoTileShowerHelper();
         shower.loadTextures();
     }else{
         loadTextures();
     }
 }
コード例 #2
0
 protected override void OnEnable()
 {
     base.OnEnable();
     if (shower == null)
     {
         shower = new AutoTileShowerHelper();
         shower.loadTextures();
     }
     else
     {
         loadTextures();
     }
 }
コード例 #3
0
 void loadTextures()
 {
     Sprite[] sprites = Resources.LoadAll <Sprite>("MapLoader/autotileExemple");
     previewTextures = TextureUtils.texturesFromSprites(sprites);
     shower.loadTextures();
 }