Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
tetra-tower
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Oenos
tetra-tower
Commits
f1d20049
Commit
f1d20049
authored
Jan 21, 2019
by
18김상언
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
플랫폼 타일 테마마다 변경할 수 있도록 하는 코드 구상중
근데 지금 4분할 타일 조합하고 있는데 스크립트로 맵짜기는 에바인거 같다 노가다 열심히 해야할듯
parent
1fe30fe4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
+49
-0
ChangePlatformTile.cs
Assets/Scripts/ChangePlatformTile.cs
+38
-0
ChangePlatformTile.cs.meta
Assets/Scripts/ChangePlatformTile.cs.meta
+11
-0
No files found.
Assets/Scripts/ChangePlatformTile.cs
0 → 100644
View file @
f1d20049
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
}
Assets/Scripts/ChangePlatformTile.cs.meta
0 → 100644
View file @
f1d20049
fileFormatVersion: 2
guid: b259a6bdc27ef794580e14b9992fe520
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment