Commit f1d20049 authored by 18김상언's avatar 18김상언

플랫폼 타일 테마마다 변경할 수 있도록 하는 코드 구상중

근데 지금 4분할 타일 조합하고 있는데 스크립트로 맵짜기는 에바인거 같다
노가다 열심히 해야할듯
parent 1fe30fe4
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Tilemaps;
public class ChangePlatformTile : MonoBehaviour {
public Tilemap map;
public Tile currentTile;
public Tile forestRuin;
public Tile iceTemple;
public Tile waterWay;
public Tile underTree;
// Use this for initialization
private void Start()
{
map.SwapTile(currentTile, forestRuin);
}
/*
if(concept 숲속유적)
map.SwapTile(currentTile, forestRuin);
if concept 얼음신전
map.SwapTile(currentTile, iceTemple);
if concept 수로
map.SwapTile(currentTile, waterWay);
if concept 나무아래
map.SwapTile(currentTile, underTree);
*/
private void Update()
{
}
// Update is called once per frame
}
fileFormatVersion: 2
guid: b259a6bdc27ef794580e14b9992fe520
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment