Commit 4492985a authored by 황호기's avatar 황호기

캐릭터 에디터 제작 시작

parent fca7e4c4
fileFormatVersion: 2
guid: cca2edc14b5603345af73e23aca43c1d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
fileFormatVersion: 2
guid: 16bdee091ffa6304a9370942b24713df
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 100100000
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CharacterEditor : MonoBehaviour {
[SerializeField]
private CharacterRankEditor characterRankEditor;
public void Add()
{
characterRankEditor.gameObject.SetActive( true );
characterRankEditor.SetAddMode();
}
}
fileFormatVersion: 2
guid: 18779c8096ad42a4ea18423e957a847a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CharacterRankEditor : MonoBehaviour {
[SerializeField]
private CharacterEditor characterEditor;
private bool isAddMode;
public void SetAddMode()
{
isAddMode = true;
}
}
fileFormatVersion: 2
guid: f9425730019438142b75f21198983fba
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: a7e394cddcf31f847b1778f716cf4c0d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
......@@ -11,6 +11,15 @@ namespace TBR.TableData
[JsonProperty]
public string Id { get; private set; }
[JsonProperty]
public string Name { get; private set; }
[JsonProperty]
public List<CharacterGradeDescriptor> Grades { get; private set; }
}
public class CharacterGradeDescriptor
{
[JsonProperty]
public int MaxLevel { get; private set; }
......
......@@ -46,7 +46,7 @@ TextureImporter:
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteBorder: {x: 20, y: 20, z: 20, w: 20}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
......
......@@ -46,7 +46,7 @@ TextureImporter:
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteBorder: {x: 20, y: 20, z: 20, w: 20}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
......
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