From 439fbc9c6eb1796371e4ae779b9d1cb39e38b715 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=ED=8C=90=EB=8F=8C?= Date: Wed, 29 Nov 2023 03:08:05 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B2=84=EC=A0=84,=EB=8D=B0=EC=9D=B4=ED=84=B0?= =?UTF-8?q?=20=EA=B4=80=EB=A6=AC=20=EC=9E=91=EC=97=85=EC=99=84=EB=A3=8C=20?= =?UTF-8?q?=EB=8F=84=EB=81=BC=EA=B3=A0=EB=B8=94=EB=A6=B0=20=EC=A0=84?= =?UTF-8?q?=ED=88=AC=20=EA=B0=80=EB=8A=A5=ED=95=98=EA=B2=8C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Client/Assets/0_Scenes/Play.unity | 51 +++--- Client/Assets/1_Script/Info/SummonsUnit.cs | 7 +- Client/Assets/1_Script/Info/UnitCtrl.cs | 29 ++- Client/Assets/1_Script/PlayCtrl.cs | 12 +- .../1_Script/System/Datas/ExcelDatas.cs | 4 +- Client/Assets/1_Script/System/GameManager.cs | 36 +++- Client/Assets/1_Script/System/Statics.cs | 5 + Client/Assets/3_Prefab/SystemUI.prefab | 2 +- ...reenGoblin_Axe.prefab => AxeGoblin.prefab} | 165 +++++++++--------- ..._Axe.prefab.meta => AxeGoblin.prefab.meta} | 0 .../{GreenOrc_Axe.prefab => AxeOrc.prefab} | 2 +- ...Orc_Axe.prefab.meta => AxeOrc.prefab.meta} | 0 .../{GreenOrc_Boss.prefab => BossOrc.prefab} | 2 +- ...c_Boss.prefab.meta => BossOrc.prefab.meta} | 0 ..._FireBottle.prefab => BottleGoblin.prefab} | 2 +- ...e.prefab.meta => BottleGoblin.prefab.meta} | 0 ...reenGoblin_Bow.prefab => BowGoblin.prefab} | 2 +- ..._Bow.prefab.meta => BowGoblin.prefab.meta} | 0 ...reenOrc_Sniper.prefab => SniperOrc.prefab} | 2 +- ...iper.prefab.meta => SniperOrc.prefab.meta} | 0 ...Goblin_Spear.prefab => SpearGoblin.prefab} | 2 +- ...ar.prefab.meta => SpearGoblin.prefab.meta} | 0 ...{GreenOrc_Spear.prefab => SpearOrc.prefab} | 2 +- ...Spear.prefab.meta => SpearOrc.prefab.meta} | 0 ...{GreenOrc_Sword.prefab => SwordOrc.prefab} | 2 +- ...Sword.prefab.meta => SwordOrc.prefab.meta} | 0 ...reenOrc_Wizard.prefab => WizardOcr.prefab} | 2 +- ...zard.prefab.meta => WizardOcr.prefab.meta} | 0 .../2.Animation/Goblin_Axe_Anim.controller | 4 +- 29 files changed, 205 insertions(+), 128 deletions(-) rename Client/Assets/Resources/Unit/{GreenGoblin_Axe.prefab => AxeGoblin.prefab} (97%) rename Client/Assets/Resources/Unit/{GreenGoblin_Axe.prefab.meta => AxeGoblin.prefab.meta} (100%) rename Client/Assets/Resources/Unit/{GreenOrc_Axe.prefab => AxeOrc.prefab} (99%) rename Client/Assets/Resources/Unit/{GreenOrc_Axe.prefab.meta => AxeOrc.prefab.meta} (100%) rename Client/Assets/Resources/Unit/{GreenOrc_Boss.prefab => BossOrc.prefab} (99%) rename Client/Assets/Resources/Unit/{GreenOrc_Boss.prefab.meta => BossOrc.prefab.meta} (100%) rename Client/Assets/Resources/Unit/{GreenGoblin_FireBottle.prefab => BottleGoblin.prefab} (99%) rename Client/Assets/Resources/Unit/{GreenGoblin_FireBottle.prefab.meta => BottleGoblin.prefab.meta} (100%) rename Client/Assets/Resources/Unit/{GreenGoblin_Bow.prefab => BowGoblin.prefab} (99%) rename Client/Assets/Resources/Unit/{GreenGoblin_Bow.prefab.meta => BowGoblin.prefab.meta} (100%) rename Client/Assets/Resources/Unit/{GreenOrc_Sniper.prefab => SniperOrc.prefab} (99%) rename Client/Assets/Resources/Unit/{GreenOrc_Sniper.prefab.meta => SniperOrc.prefab.meta} (100%) rename Client/Assets/Resources/Unit/{GreenGoblin_Spear.prefab => SpearGoblin.prefab} (99%) rename Client/Assets/Resources/Unit/{GreenGoblin_Spear.prefab.meta => SpearGoblin.prefab.meta} (100%) rename Client/Assets/Resources/Unit/{GreenOrc_Spear.prefab => SpearOrc.prefab} (99%) rename Client/Assets/Resources/Unit/{GreenOrc_Spear.prefab.meta => SpearOrc.prefab.meta} (100%) rename Client/Assets/Resources/Unit/{GreenOrc_Sword.prefab => SwordOrc.prefab} (99%) rename Client/Assets/Resources/Unit/{GreenOrc_Sword.prefab.meta => SwordOrc.prefab.meta} (100%) rename Client/Assets/Resources/Unit/{GreenOrc_Wizard.prefab => WizardOcr.prefab} (99%) rename Client/Assets/Resources/Unit/{GreenOrc_Wizard.prefab.meta => WizardOcr.prefab.meta} (100%) diff --git a/Client/Assets/0_Scenes/Play.unity b/Client/Assets/0_Scenes/Play.unity index a758a361..00fcfc33 100644 --- a/Client/Assets/0_Scenes/Play.unity +++ b/Client/Assets/0_Scenes/Play.unity @@ -987,33 +987,42 @@ MonoBehaviour: speed: 10 slider: {fileID: 1420928031} anim: {fileID: 2078404821} - unit: {fileID: 3575198418150468650, guid: 5f38f860c4c61754ba8bbfa49d925b5f, type: 3} newBuildingUI: {fileID: 1842952264} buildingLevelupUI: {fileID: 1785205477} backButton: {fileID: 1396764732} units: - - {fileID: 1949180232321779611, guid: 49e392c236699c847aed4866abb2335d, type: 3} - - {fileID: -6150474728477210055, guid: bdf90406a02966b4781544b262167e1b, type: 3} - - {fileID: 6378634513466364443, guid: 9b56846c8cf27d44cb278c3aa0a1147e, type: 3} - - {fileID: -4203858676371876518, guid: 6af2b537b964eb049a1031d0fe5611f1, type: 3} - - {fileID: -7112508950674410464, guid: c743e306ed982854b9b4f7d04a028f22, type: 3} - - {fileID: 955092010516457788, guid: e3f40bd51f6186842a414ae17a605ab7, type: 3} - - {fileID: 1812894275950873291, guid: d3a1d6b9bdf271442a2af197b361ccc1, type: 3} - - {fileID: 5791056106300521427, guid: f88154bd30745ee4799f94eff1ef9df2, type: 3} - - {fileID: 1573152061896382127, guid: 08572250e125db74489b23757b35d6fc, type: 3} - unitImages: - - {fileID: 21300000, guid: 0b976f51cbd350847acfd531507de93b, type: 3} - - {fileID: 21300000, guid: 98d97513fb3a0dd4db5f9751fb0ecc73, type: 3} - - {fileID: 21300000, guid: 45164c8169ba3204c8802b2721b8a269, type: 3} - - {fileID: 21300000, guid: d6f28569af70097498989b582ae5c665, type: 3} - - {fileID: 21300000, guid: a07de19792bd78946a82d906864cb044, type: 3} - - {fileID: 21300000, guid: 5fc0efe85b23e144dbd4aede9ebf0e3c, type: 3} - - {fileID: 21300000, guid: 19212e068479324499fd9c2df695e1a5, type: 3} - - {fileID: 21300000, guid: 9a5fe966de57a3a4084292167498822b, type: 3} - - {fileID: 21300000, guid: b4d800f3867055b488a2005b95086ec9, type: 3} + - {fileID: 6160760351963478645, guid: 5f38f860c4c61754ba8bbfa49d925b5f, type: 3} + - {fileID: 2589336159898910466, guid: ab93cd2f431d169408ca3e6cf43b2090, type: 3} + - {fileID: 2776803815121232242, guid: dd44a7468973dec4991cc3e6f036b5a6, type: 3} + - {fileID: 1769621809454940063, guid: def11be6f06804f479b438558506d5da, type: 3} + - {fileID: 7468181147198415131, guid: 742c034f1775e114e9c83507505b1f78, type: 3} + - {fileID: 8474998885444812674, guid: 7b0af7dce16ba4f468435f35d3a85161, type: 3} + - {fileID: 7995012865909342350, guid: 1cc56f1de218825438370e0b04d8eb4b, type: 3} + - {fileID: 824116206199136150, guid: 668f19ec68faa3749b5a955d6a5a66c8, type: 3} + - {fileID: 2789618061690570302, guid: 1efaad54f2327b845b5147b6d8d162ee, type: 3} buyText: {fileID: 663203141} sellText: {fileID: 1782769547} moneyText: {fileID: 13568456} + unitSpriteButton: + - {fileID: 1350949798} + - {fileID: 506581432} + - {fileID: 655988522} + - {fileID: 738171980} + - {fileID: 1890048953} + - {fileID: 1552720816} + - {fileID: 1703750907} + - {fileID: 1234321973} + - {fileID: 740295918} + unitTextButton: + - {fileID: 723949020} + - {fileID: 895695578} + - {fileID: 677531640} + - {fileID: 336176157} + - {fileID: 1993147086} + - {fileID: 1232772304} + - {fileID: 354762308} + - {fileID: 1448517138} + - {fileID: 393547700} player: {fileID: 0} enemy: {fileID: 0} buildingCtrl: {fileID: 0} @@ -8927,7 +8936,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 + m_IsActive: 1 --- !u!224 &1396764733 RectTransform: m_ObjectHideFlags: 0 diff --git a/Client/Assets/1_Script/Info/SummonsUnit.cs b/Client/Assets/1_Script/Info/SummonsUnit.cs index 7f5b920b..374f342d 100644 --- a/Client/Assets/1_Script/Info/SummonsUnit.cs +++ b/Client/Assets/1_Script/Info/SummonsUnit.cs @@ -38,7 +38,7 @@ public class SummonsUnit : MonoBehaviour List units = new List(); for (int m = 0; m < 5; m++) { - units.Add(PlayCtrl.Instance.unit.GetComponent()); + units.Add(Statics.units["AxeGoblin"].GetComponent()); } buildings[0].units = units; } @@ -55,10 +55,11 @@ public class SummonsUnit : MonoBehaviour for (int n = 0; n < listCount; n++) { + float pos = Random.Range(-3.7f, -0.3f); if (isEnemy) //ȯ - Instantiate(buildingInfo.units[n].gameObject, new Vector3(Random.Range(44.0f, 46.0f), Random.Range(-3.7f, -0.3f), 0), Quaternion.identity).GetComponent().isEnemy = isEnemy; + Instantiate(buildingInfo.units[n].gameObject, new Vector3(Random.Range(44.0f, 46.0f), pos, pos + 3.8f), Quaternion.identity).GetComponent().isEnemy = isEnemy; else //Ʊ ȯ - Instantiate(buildingInfo.units[n].gameObject, new Vector3(Random.Range(-44.0f, -46.0f), Random.Range(-3.7f, -0.3f), 0), Quaternion.identity).GetComponent().isEnemy = isEnemy; + Instantiate(buildingInfo.units[n].gameObject, new Vector3(Random.Range(-44.0f, -46.0f), pos, pos + 3.8f), Quaternion.identity).GetComponent().isEnemy = isEnemy; } if (!isEnemy)//ڿ { diff --git a/Client/Assets/1_Script/Info/UnitCtrl.cs b/Client/Assets/1_Script/Info/UnitCtrl.cs index f338821a..0f773ff4 100644 --- a/Client/Assets/1_Script/Info/UnitCtrl.cs +++ b/Client/Assets/1_Script/Info/UnitCtrl.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; using UnityEngine; @@ -8,6 +9,7 @@ public class UnitCtrl : MonoBehaviour public GameObject defensObj; public Sprite unitSprite; bool isHomeAttack; + public BoxCollider2D[] components; List enemyUnits; @@ -15,6 +17,17 @@ public class UnitCtrl : MonoBehaviour float delay; + public void DataSet(UnitData ud) + { + unit.name = ud.name; + unit.hp = ud.hp; + unit.attack = ud.attack; + unit.attackSpeed = ud.attack_speed; + unit.defense = ud.defense; + unit.moveSpeed = ud.move_speed; + unit.buy = ud.buy.ToArray(); + } + private void Awake() { enemyUnits = new List(); @@ -46,7 +59,7 @@ public class UnitCtrl : MonoBehaviour anim.SetBool("isMove", false); if (enemyUnits.Count == 0) { - anim.SetTrigger("att"); + anim.SetTrigger("attack"); if (isEnemy) { PlayCtrl.Instance.player.campHp -= unit.attack; @@ -71,7 +84,7 @@ public class UnitCtrl : MonoBehaviour { if (enemyUnits[0] != null) { - anim.SetTrigger("att"); + anim.SetTrigger("attack"); enemyUnits[0].Attack(unit.attack); delay = unit.attackSpeed; } @@ -120,13 +133,23 @@ public class UnitCtrl : MonoBehaviour /// public void Attack(int dmg) { + if(unit.defense > dmg) + { + dmg = unit.defense + 100; + } unit.hp -= (dmg - unit.defense); Debug.Log($"{dmg - unit.defense}! {unit.hp}."); if(unit.hp <= 0) { //ӽ÷ ϰ ó Ȱ Ҽ ְ óҰ - Destroy(gameObject); + anim.SetBool("isDie", true); + components[0].enabled = false; + components[1].enabled = false; + Destroy(gameObject, 1.0f); } } } +// , ݶ̴ ġ Unit > oder +// oder ݶ̴ Ʈ üũ +// 潺 Ʈ ġ \ No newline at end of file diff --git a/Client/Assets/1_Script/PlayCtrl.cs b/Client/Assets/1_Script/PlayCtrl.cs index a084ebfb..d9c9f7f7 100644 --- a/Client/Assets/1_Script/PlayCtrl.cs +++ b/Client/Assets/1_Script/PlayCtrl.cs @@ -16,16 +16,15 @@ public class PlayCtrl : SingletonMonoBehaviour public Animator anim; - public GameObject unit; - public GameObject newBuildingUI; public GameObject buildingLevelupUI; public GameObject backButton; public UnitCtrl[] units; - public Sprite[] unitImages; public TMP_Text buyText; public TMP_Text sellText; public TMP_Text moneyText; + public Image[] unitSpriteButton; + public TMP_Text[] unitTextButton; public SummonsUnit player; public SummonsUnit enemy; @@ -48,6 +47,11 @@ public class PlayCtrl : SingletonMonoBehaviour moneyText.text = money.ToString(); isEndGame = false; delay = 0.0f; + for(int n = 0; n < unitSpriteButton.Length; n++) + { + unitSpriteButton[n].sprite = units[n].unitSprite; + unitTextButton[n].text = units[n].unit.buy[0].ToString(); + } uiExit(); } @@ -111,7 +115,7 @@ public class PlayCtrl : SingletonMonoBehaviour public void SelectUnit(int count) { - buildingCtrl.NewBuilding(units[count], unitImages[count]); + buildingCtrl.NewBuilding(units[count], units[count].unitSprite); uiExit(); } diff --git a/Client/Assets/1_Script/System/Datas/ExcelDatas.cs b/Client/Assets/1_Script/System/Datas/ExcelDatas.cs index 8df7fad2..b97bb420 100644 --- a/Client/Assets/1_Script/System/Datas/ExcelDatas.cs +++ b/Client/Assets/1_Script/System/Datas/ExcelDatas.cs @@ -1,4 +1,5 @@ using MEC; +using System; using System.Collections.Generic; public class ExcelDatas @@ -9,7 +10,7 @@ public class ExcelDatas - public IEnumerator ToJson() + public IEnumerator ToJson(Action action) { yield return Timing.WaitForSeconds(0); foreach (var data in unitData) @@ -17,6 +18,7 @@ public class ExcelDatas data.Value.toJson(); } yield return Timing.WaitForSeconds(0); + action(); } } diff --git a/Client/Assets/1_Script/System/GameManager.cs b/Client/Assets/1_Script/System/GameManager.cs index 2246690e..ee817213 100644 --- a/Client/Assets/1_Script/System/GameManager.cs +++ b/Client/Assets/1_Script/System/GameManager.cs @@ -1,5 +1,7 @@ using MEC; using Newtonsoft.Json; +using System.Collections.Generic; +using UnityEngine; using UnityEngine.SceneManagement; public class GameManager : DontDestroy @@ -18,15 +20,43 @@ public class GameManager : DontDestroy protected override void OnStart() { + Statics.version = PlayerPrefs.GetString("version"); DownlodeResp request = new DownlodeResp(); request.Request((data) => { - Statics.excelDatas = JsonConvert.DeserializeObject(Crypto.Instance.Decompress(data.data)); - corExcel = Timing.RunCoroutine(Statics.excelDatas.ToJson()); - Statics.version = data.version; + if(data.data != "") + { + string excelDatas = Crypto.Instance.Decompress(data.data); + string cryptoExcel = Crypto.Instance.Encrypt(excelDatas); + Statics.excelDatas = JsonConvert.DeserializeObject(excelDatas); + corExcel = Timing.RunCoroutine(Statics.excelDatas.ToJson(UnitDataSet)); + Statics.version = data.version; + PlayerPrefs.SetString("e", cryptoExcel); + PlayerPrefs.SetString("version", data.version); + } + else + { + Statics.excelDatas = JsonConvert.DeserializeObject(Crypto.Instance.Decrypt(PlayerPrefs.GetString("e"))); + corExcel = Timing.RunCoroutine(Statics.excelDatas.ToJson(UnitDataSet)); + } }); } + private void UnitDataSet() + { + Statics.units = new Dictionary(); + foreach (var data in Statics.excelDatas.unitData) + { + GameObject obj = Resources.Load($"Unit/{data.Value.name}"); + if (obj != null) + { + obj.GetComponent().DataSet(data.Value); + Statics.units.Add(data.Value.name, obj); + } + + } + } + //public float x = 2160f; //public float y = 1080f; //현재 등록되어 있는 Scene을 입력하면 현재 열려있는 씬이 무엇인지 NowScene을 통해 알 수 있게됩니다. diff --git a/Client/Assets/1_Script/System/Statics.cs b/Client/Assets/1_Script/System/Statics.cs index b059e465..85a05baa 100644 --- a/Client/Assets/1_Script/System/Statics.cs +++ b/Client/Assets/1_Script/System/Statics.cs @@ -1,3 +1,6 @@ +using System.Collections.Generic; +using UnityEngine; + public class Statics { public static readonly string url = "https://game.pandoli365.com"; @@ -7,4 +10,6 @@ public class Statics public static ExcelDatas excelDatas; + public static Dictionary units = new Dictionary(); + } diff --git a/Client/Assets/3_Prefab/SystemUI.prefab b/Client/Assets/3_Prefab/SystemUI.prefab index 0c827d2c..c1fe2e19 100644 --- a/Client/Assets/3_Prefab/SystemUI.prefab +++ b/Client/Assets/3_Prefab/SystemUI.prefab @@ -1737,7 +1737,7 @@ Camera: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6231225142295759459} - m_Enabled: 1 + m_Enabled: 0 serializedVersion: 2 m_ClearFlags: 3 m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} diff --git a/Client/Assets/Resources/Unit/GreenGoblin_Axe.prefab b/Client/Assets/Resources/Unit/AxeGoblin.prefab similarity index 97% rename from Client/Assets/Resources/Unit/GreenGoblin_Axe.prefab rename to Client/Assets/Resources/Unit/AxeGoblin.prefab index 6525ca11..fce1eb9f 100644 --- a/Client/Assets/Resources/Unit/GreenGoblin_Axe.prefab +++ b/Client/Assets/Resources/Unit/AxeGoblin.prefab @@ -294,8 +294,6 @@ GameObject: m_Component: - component: {fileID: 2128100760983076960} - component: {fileID: 5417960701453434843} - - component: {fileID: 2031826263459372482} - - component: {fileID: 6367445664438805880} m_Layer: 7 m_Name: Unit m_TagString: GameController @@ -319,7 +317,6 @@ Transform: - {fileID: 505301380679157584} - {fileID: 4027500418563609254} - {fileID: 268933105215317857} - - {fileID: 3425313666554185937} m_Father: {fileID: 1169671639825501248} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!95 &5417960701453434843 @@ -343,78 +340,6 @@ Animator: m_AllowConstantClipSamplingOptimization: 1 m_KeepAnimatorStateOnDisable: 0 m_WriteDefaultValuesOnDisable: 0 ---- !u!61 &2031826263459372482 -BoxCollider2D: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2280089942143957658} - m_Enabled: 1 - m_Density: 1 - m_Material: {fileID: 0} - m_IncludeLayers: - serializedVersion: 2 - m_Bits: 0 - m_ExcludeLayers: - serializedVersion: 2 - m_Bits: 0 - m_LayerOverridePriority: 0 - m_ForceSendLayers: - serializedVersion: 2 - m_Bits: 4294967295 - m_ForceReceiveLayers: - serializedVersion: 2 - m_Bits: 4294967295 - m_ContactCaptureLayers: - serializedVersion: 2 - m_Bits: 4294967295 - m_CallbackLayers: - serializedVersion: 2 - m_Bits: 4294967295 - m_IsTrigger: 0 - m_UsedByEffector: 0 - m_UsedByComposite: 0 - m_Offset: {x: -0.5, y: 0} - m_SpriteTilingProperty: - border: {x: 0, y: 0, z: 0, w: 0} - pivot: {x: 0, y: 0} - oldSize: {x: 0, y: 0} - newSize: {x: 0, y: 0} - adaptiveTilingThreshold: 0 - drawMode: 0 - adaptiveTiling: 0 - m_AutoTiling: 0 - serializedVersion: 2 - m_Size: {x: 1, y: 3} - m_EdgeRadius: 0 ---- !u!50 &6367445664438805880 -Rigidbody2D: - serializedVersion: 4 - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2280089942143957658} - m_BodyType: 1 - m_Simulated: 1 - m_UseFullKinematicContacts: 0 - m_UseAutoMass: 0 - m_Mass: 1 - m_LinearDrag: 0 - m_AngularDrag: 0.05 - m_GravityScale: 1 - m_Material: {fileID: 0} - m_IncludeLayers: - serializedVersion: 2 - m_Bits: 0 - m_ExcludeLayers: - serializedVersion: 2 - m_Bits: 0 - m_Interpolate: 0 - m_SleepingMode: 1 - m_CollisionDetection: 0 - m_Constraints: 0 --- !u!1 &3575198418150468650 GameObject: m_ObjectHideFlags: 0 @@ -425,9 +350,11 @@ GameObject: m_Component: - component: {fileID: 1169671639825501248} - component: {fileID: 6160760351963478645} - m_Layer: 0 - m_Name: GreenGoblin_Axe - m_TagString: Untagged + - component: {fileID: 4029215868761793154} + - component: {fileID: 6841604708067326488} + m_Layer: 7 + m_Name: AxeGoblin + m_TagString: GameController m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -446,6 +373,7 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: - {fileID: 2128100760983076960} + - {fileID: 3425313666554185937} m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!114 &6160760351963478645 @@ -469,9 +397,84 @@ MonoBehaviour: moveSpeed: 5 buy: e8030000e8030000e8030000e8030000e8030000 anim: {fileID: 5417960701453434843} - defensObj: {fileID: 2280089942143957658} + defensObj: {fileID: 5006490412300603360} unitSprite: {fileID: 21300000, guid: 67acf8f2dfae66a44ae739005e9f005e, type: 3} + components: + - {fileID: 4029215868761793154} + - {fileID: 2571001854460325770} isEnemy: 0 +--- !u!61 &4029215868761793154 +BoxCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3575198418150468650} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_ForceSendLayers: + serializedVersion: 2 + m_Bits: 4294967295 + m_ForceReceiveLayers: + serializedVersion: 2 + m_Bits: 4294967295 + m_ContactCaptureLayers: + serializedVersion: 2 + m_Bits: 4294967295 + m_CallbackLayers: + serializedVersion: 2 + m_Bits: 4294967295 + m_IsTrigger: 1 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: -0.5, y: 0} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0, y: 0} + oldSize: {x: 0, y: 0} + newSize: {x: 0, y: 0} + adaptiveTilingThreshold: 0 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + serializedVersion: 2 + m_Size: {x: 1, y: 3} + m_EdgeRadius: 0 +--- !u!50 &6841604708067326488 +Rigidbody2D: + serializedVersion: 4 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3575198418150468650} + m_BodyType: 1 + m_Simulated: 1 + m_UseFullKinematicContacts: 0 + m_UseAutoMass: 0 + m_Mass: 1 + m_LinearDrag: 0 + m_AngularDrag: 0.05 + m_GravityScale: 1 + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_Interpolate: 0 + m_SleepingMode: 1 + m_CollisionDetection: 0 + m_Constraints: 0 --- !u!1 &4434163596363041410 GameObject: m_ObjectHideFlags: 0 @@ -531,10 +534,10 @@ Transform: serializedVersion: 2 m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} + m_LocalScale: {x: 2, y: 2, z: 2} m_ConstrainProportionsScale: 0 m_Children: [] - m_Father: {fileID: 2128100760983076960} + m_Father: {fileID: 1169671639825501248} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!61 &2571001854460325770 BoxCollider2D: diff --git a/Client/Assets/Resources/Unit/GreenGoblin_Axe.prefab.meta b/Client/Assets/Resources/Unit/AxeGoblin.prefab.meta similarity index 100% rename from Client/Assets/Resources/Unit/GreenGoblin_Axe.prefab.meta rename to Client/Assets/Resources/Unit/AxeGoblin.prefab.meta diff --git a/Client/Assets/Resources/Unit/GreenOrc_Axe.prefab b/Client/Assets/Resources/Unit/AxeOrc.prefab similarity index 99% rename from Client/Assets/Resources/Unit/GreenOrc_Axe.prefab rename to Client/Assets/Resources/Unit/AxeOrc.prefab index 3390ecdb..8f7d1bfe 100644 --- a/Client/Assets/Resources/Unit/GreenOrc_Axe.prefab +++ b/Client/Assets/Resources/Unit/AxeOrc.prefab @@ -673,7 +673,7 @@ GameObject: - component: {fileID: 8529852409354240127} - component: {fileID: 2589336159898910466} m_Layer: 0 - m_Name: GreenOrc_Axe + m_Name: AxeOrc m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 diff --git a/Client/Assets/Resources/Unit/GreenOrc_Axe.prefab.meta b/Client/Assets/Resources/Unit/AxeOrc.prefab.meta similarity index 100% rename from Client/Assets/Resources/Unit/GreenOrc_Axe.prefab.meta rename to Client/Assets/Resources/Unit/AxeOrc.prefab.meta diff --git a/Client/Assets/Resources/Unit/GreenOrc_Boss.prefab b/Client/Assets/Resources/Unit/BossOrc.prefab similarity index 99% rename from Client/Assets/Resources/Unit/GreenOrc_Boss.prefab rename to Client/Assets/Resources/Unit/BossOrc.prefab index acdf226f..607dea90 100644 --- a/Client/Assets/Resources/Unit/GreenOrc_Boss.prefab +++ b/Client/Assets/Resources/Unit/BossOrc.prefab @@ -758,7 +758,7 @@ GameObject: - component: {fileID: 193799572164042617} - component: {fileID: 4901234637459740715} m_Layer: 0 - m_Name: GreenOrc_Boss + m_Name: BossOrc m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 diff --git a/Client/Assets/Resources/Unit/GreenOrc_Boss.prefab.meta b/Client/Assets/Resources/Unit/BossOrc.prefab.meta similarity index 100% rename from Client/Assets/Resources/Unit/GreenOrc_Boss.prefab.meta rename to Client/Assets/Resources/Unit/BossOrc.prefab.meta diff --git a/Client/Assets/Resources/Unit/GreenGoblin_FireBottle.prefab b/Client/Assets/Resources/Unit/BottleGoblin.prefab similarity index 99% rename from Client/Assets/Resources/Unit/GreenGoblin_FireBottle.prefab rename to Client/Assets/Resources/Unit/BottleGoblin.prefab index 831e5fe6..78c0c00d 100644 --- a/Client/Assets/Resources/Unit/GreenGoblin_FireBottle.prefab +++ b/Client/Assets/Resources/Unit/BottleGoblin.prefab @@ -11,7 +11,7 @@ GameObject: - component: {fileID: 3436199915513243441} - component: {fileID: 2776803815121232242} m_Layer: 0 - m_Name: GreenGoblin_FireBottle + m_Name: BottleGoblin m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 diff --git a/Client/Assets/Resources/Unit/GreenGoblin_FireBottle.prefab.meta b/Client/Assets/Resources/Unit/BottleGoblin.prefab.meta similarity index 100% rename from Client/Assets/Resources/Unit/GreenGoblin_FireBottle.prefab.meta rename to Client/Assets/Resources/Unit/BottleGoblin.prefab.meta diff --git a/Client/Assets/Resources/Unit/GreenGoblin_Bow.prefab b/Client/Assets/Resources/Unit/BowGoblin.prefab similarity index 99% rename from Client/Assets/Resources/Unit/GreenGoblin_Bow.prefab rename to Client/Assets/Resources/Unit/BowGoblin.prefab index 1a555c53..62ac8589 100644 --- a/Client/Assets/Resources/Unit/GreenGoblin_Bow.prefab +++ b/Client/Assets/Resources/Unit/BowGoblin.prefab @@ -179,7 +179,7 @@ GameObject: - component: {fileID: 3623094926497331022} - component: {fileID: 1769621809454940063} m_Layer: 0 - m_Name: GreenGoblin_Bow + m_Name: BowGoblin m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 diff --git a/Client/Assets/Resources/Unit/GreenGoblin_Bow.prefab.meta b/Client/Assets/Resources/Unit/BowGoblin.prefab.meta similarity index 100% rename from Client/Assets/Resources/Unit/GreenGoblin_Bow.prefab.meta rename to Client/Assets/Resources/Unit/BowGoblin.prefab.meta diff --git a/Client/Assets/Resources/Unit/GreenOrc_Sniper.prefab b/Client/Assets/Resources/Unit/SniperOrc.prefab similarity index 99% rename from Client/Assets/Resources/Unit/GreenOrc_Sniper.prefab rename to Client/Assets/Resources/Unit/SniperOrc.prefab index bfb9d406..2d46b073 100644 --- a/Client/Assets/Resources/Unit/GreenOrc_Sniper.prefab +++ b/Client/Assets/Resources/Unit/SniperOrc.prefab @@ -303,7 +303,7 @@ GameObject: - component: {fileID: 8372963211402671670} - component: {fileID: 7468181147198415131} m_Layer: 0 - m_Name: GreenOrc_Sniper + m_Name: SniperOrc m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 diff --git a/Client/Assets/Resources/Unit/GreenOrc_Sniper.prefab.meta b/Client/Assets/Resources/Unit/SniperOrc.prefab.meta similarity index 100% rename from Client/Assets/Resources/Unit/GreenOrc_Sniper.prefab.meta rename to Client/Assets/Resources/Unit/SniperOrc.prefab.meta diff --git a/Client/Assets/Resources/Unit/GreenGoblin_Spear.prefab b/Client/Assets/Resources/Unit/SpearGoblin.prefab similarity index 99% rename from Client/Assets/Resources/Unit/GreenGoblin_Spear.prefab rename to Client/Assets/Resources/Unit/SpearGoblin.prefab index cadf3b0c..6cca81ad 100644 --- a/Client/Assets/Resources/Unit/GreenGoblin_Spear.prefab +++ b/Client/Assets/Resources/Unit/SpearGoblin.prefab @@ -758,7 +758,7 @@ GameObject: - component: {fileID: 1727881365108548452} - component: {fileID: 8474998885444812674} m_Layer: 0 - m_Name: GreenGoblin_Spear + m_Name: SpearGoblin m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 diff --git a/Client/Assets/Resources/Unit/GreenGoblin_Spear.prefab.meta b/Client/Assets/Resources/Unit/SpearGoblin.prefab.meta similarity index 100% rename from Client/Assets/Resources/Unit/GreenGoblin_Spear.prefab.meta rename to Client/Assets/Resources/Unit/SpearGoblin.prefab.meta diff --git a/Client/Assets/Resources/Unit/GreenOrc_Spear.prefab b/Client/Assets/Resources/Unit/SpearOrc.prefab similarity index 99% rename from Client/Assets/Resources/Unit/GreenOrc_Spear.prefab rename to Client/Assets/Resources/Unit/SpearOrc.prefab index bfe5be9c..137197c0 100644 --- a/Client/Assets/Resources/Unit/GreenOrc_Spear.prefab +++ b/Client/Assets/Resources/Unit/SpearOrc.prefab @@ -628,7 +628,7 @@ GameObject: - component: {fileID: 2492754288297474295} - component: {fileID: 7995012865909342350} m_Layer: 0 - m_Name: GreenOrc_Spear + m_Name: SpearOrc m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 diff --git a/Client/Assets/Resources/Unit/GreenOrc_Spear.prefab.meta b/Client/Assets/Resources/Unit/SpearOrc.prefab.meta similarity index 100% rename from Client/Assets/Resources/Unit/GreenOrc_Spear.prefab.meta rename to Client/Assets/Resources/Unit/SpearOrc.prefab.meta diff --git a/Client/Assets/Resources/Unit/GreenOrc_Sword.prefab b/Client/Assets/Resources/Unit/SwordOrc.prefab similarity index 99% rename from Client/Assets/Resources/Unit/GreenOrc_Sword.prefab rename to Client/Assets/Resources/Unit/SwordOrc.prefab index a3b9a05c..a2bdf56f 100644 --- a/Client/Assets/Resources/Unit/GreenOrc_Sword.prefab +++ b/Client/Assets/Resources/Unit/SwordOrc.prefab @@ -335,7 +335,7 @@ GameObject: - component: {fileID: 4386556694652690157} - component: {fileID: 824116206199136150} m_Layer: 0 - m_Name: GreenOrc_Sword + m_Name: SwordOrc m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 diff --git a/Client/Assets/Resources/Unit/GreenOrc_Sword.prefab.meta b/Client/Assets/Resources/Unit/SwordOrc.prefab.meta similarity index 100% rename from Client/Assets/Resources/Unit/GreenOrc_Sword.prefab.meta rename to Client/Assets/Resources/Unit/SwordOrc.prefab.meta diff --git a/Client/Assets/Resources/Unit/GreenOrc_Wizard.prefab b/Client/Assets/Resources/Unit/WizardOcr.prefab similarity index 99% rename from Client/Assets/Resources/Unit/GreenOrc_Wizard.prefab rename to Client/Assets/Resources/Unit/WizardOcr.prefab index b1bbf3c0..ba815d5f 100644 --- a/Client/Assets/Resources/Unit/GreenOrc_Wizard.prefab +++ b/Client/Assets/Resources/Unit/WizardOcr.prefab @@ -373,7 +373,7 @@ GameObject: - component: {fileID: 5995982595438387061} - component: {fileID: 2789618061690570302} m_Layer: 0 - m_Name: GreenOrc_Wizard + m_Name: WizardOcr m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 diff --git a/Client/Assets/Resources/Unit/GreenOrc_Wizard.prefab.meta b/Client/Assets/Resources/Unit/WizardOcr.prefab.meta similarity index 100% rename from Client/Assets/Resources/Unit/GreenOrc_Wizard.prefab.meta rename to Client/Assets/Resources/Unit/WizardOcr.prefab.meta diff --git a/Client/Assets/SimpleCharacter/Orc/2.Animation/Goblin_Axe_Anim.controller b/Client/Assets/SimpleCharacter/Orc/2.Animation/Goblin_Axe_Anim.controller index 52ccff84..1e8d17d9 100644 --- a/Client/Assets/SimpleCharacter/Orc/2.Animation/Goblin_Axe_Anim.controller +++ b/Client/Assets/SimpleCharacter/Orc/2.Animation/Goblin_Axe_Anim.controller @@ -84,7 +84,7 @@ AnimatorStateTransition: m_Name: m_Conditions: - m_ConditionMode: 1 - m_ConditionEvent: Attack + m_ConditionEvent: attack m_EventTreshold: 0 m_DstStateMachine: {fileID: 0} m_DstState: {fileID: 1102924555222422638} @@ -137,7 +137,7 @@ AnimatorController: m_DefaultInt: 0 m_DefaultBool: 0 m_Controller: {fileID: 0} - - m_Name: Attack + - m_Name: attack m_Type: 9 m_DefaultFloat: 0 m_DefaultInt: 0