Character selection scene and data started
This commit is contained in:
parent
b8cd4c1388
commit
b798e56f22
@ -44,7 +44,7 @@ namespace Kryz.CharacterStats.Examples
|
||||
equipmentSlots[i].Item = item;
|
||||
|
||||
equipmentData.equippedItems[i] = ItemIndexer.Instance.Items.IndexOf(item);
|
||||
PlayerDataHandler.Instance.SaveCharacterEquipmentData(PhotonNetwork.NickName, equipmentData);
|
||||
PlayerDataHandler.Instance.SaveCharacterEquipmentData(PlayerDataHandler.Instance.currentPlayerName.Value, PhotonNetwork.NickName, equipmentData);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -60,7 +60,7 @@ namespace Kryz.CharacterStats.Examples
|
||||
{
|
||||
equipmentSlots[i].Item = null;
|
||||
equipmentData.equippedItems[i] = -1;
|
||||
PlayerDataHandler.Instance.SaveCharacterEquipmentData(PhotonNetwork.NickName, equipmentData);
|
||||
PlayerDataHandler.Instance.SaveCharacterEquipmentData(PlayerDataHandler.Instance.currentPlayerName.Value, PhotonNetwork.NickName, equipmentData);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -74,7 +74,7 @@ namespace Kryz.CharacterStats.Examples
|
||||
|
||||
public void LoadEquipment()
|
||||
{
|
||||
equipmentData = PlayerDataHandler.Instance.LoadCharacterEquipmentData(PhotonNetwork.NickName);
|
||||
equipmentData = PlayerDataHandler.Instance.LoadCharacterEquipmentData(PlayerDataHandler.Instance.currentPlayerName.Value, PhotonNetwork.NickName);
|
||||
|
||||
if (equipmentData != null)
|
||||
{
|
||||
|
@ -98,7 +98,7 @@ namespace Kryz.CharacterStats.Examples
|
||||
if (!PhotonNetwork.InRoom) return;
|
||||
if (!shouldSave) return;
|
||||
|
||||
PlayerDataHandler.Instance.SaveCharacterInventoryData(PhotonNetwork.NickName, inventoryData);
|
||||
PlayerDataHandler.Instance.SaveCharacterInventoryData(PlayerDataHandler.Instance.currentPlayerName.Value, PhotonNetwork.NickName, inventoryData);
|
||||
}
|
||||
|
||||
public bool AddItem(Item item)
|
||||
@ -129,7 +129,7 @@ namespace Kryz.CharacterStats.Examples
|
||||
|
||||
public void LoadInventory()
|
||||
{
|
||||
inventoryData = PlayerDataHandler.Instance.LoadCharacterInventoryData(PhotonNetwork.NickName);
|
||||
inventoryData = PlayerDataHandler.Instance.LoadCharacterInventoryData(PlayerDataHandler.Instance.currentPlayerName.Value, PhotonNetwork.NickName);
|
||||
|
||||
if (inventoryData != null)
|
||||
{
|
||||
|
@ -53,7 +53,7 @@ namespace Kryz.CharacterStats.Examples
|
||||
|
||||
if (!photonView.IsMine) return;
|
||||
|
||||
characterData = PlayerDataHandler.Instance.LoadCharacterData(photonView.Owner.NickName);
|
||||
characterData = PlayerDataHandler.Instance.LoadCharacterData(PlayerDataHandler.Instance.currentPlayerName.Value, photonView.Owner.NickName);
|
||||
|
||||
if (characterData != null)
|
||||
{
|
||||
@ -125,7 +125,7 @@ namespace Kryz.CharacterStats.Examples
|
||||
characterData.currentLevel = level.currentLevel;
|
||||
characterData.currentExperience = level.GetCurrentExperience();
|
||||
|
||||
PlayerDataHandler.Instance.SaveCharacterData(photonView.Owner.NickName, characterData);
|
||||
PlayerDataHandler.Instance.SaveCharacterData(PlayerDataHandler.Instance.currentPlayerName.Value, photonView.Owner.NickName, characterData);
|
||||
}
|
||||
|
||||
private void OnLevelUp()
|
||||
@ -234,7 +234,7 @@ namespace Kryz.CharacterStats.Examples
|
||||
characterData.allocatedStatPoints[i] = AllocatedStatPoints[i];
|
||||
}
|
||||
|
||||
PlayerDataHandler.Instance.SaveCharacterData(photonView.Owner.NickName, characterData);
|
||||
PlayerDataHandler.Instance.SaveCharacterData(PlayerDataHandler.Instance.currentPlayerName.Value, photonView.Owner.NickName, characterData);
|
||||
|
||||
onUpdateStatValues.Invoke();
|
||||
}
|
||||
|
@ -44,6 +44,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 40822b285732f4c4faa78e10ed5932da, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
currentPlayerName: {fileID: 0}
|
||||
--- !u!1 &185707331849063518
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -3860,14 +3861,14 @@ MonoBehaviour:
|
||||
onPlayerVoteCanceled: {fileID: 3794219214771421788}
|
||||
onPlayerSpawned: {fileID: 7475116342452656565}
|
||||
classImages:
|
||||
- {fileID: 21300000, guid: 2069f54d7d670874ebddb4f776599fca, type: 3}
|
||||
- {fileID: 21300000, guid: 23ef5a7692693cd428d87441042dfa2e, type: 3}
|
||||
- {fileID: 21300000, guid: 43ec3f0dab32b934bb86fd4614e3872c, type: 3}
|
||||
- {fileID: 21300000, guid: 2069f54d7d670874ebddb4f776599fca, type: 3}
|
||||
- {fileID: 21300000, guid: 33125492031e5d14db4af431fd116869, type: 3}
|
||||
classTags:
|
||||
- {fileID: 11400000, guid: 8dffc501620b33a45b2aef5527d400bf, type: 2}
|
||||
- {fileID: 11400000, guid: 92dda115d07799a45a507f28944bd7c1, type: 2}
|
||||
- {fileID: 11400000, guid: 504738889b9f3b14596e37f7bba80fbf, type: 2}
|
||||
- {fileID: 11400000, guid: 8dffc501620b33a45b2aef5527d400bf, type: 2}
|
||||
- {fileID: 11400000, guid: 99c760c6691f1ad4eb236e73002266f5, type: 2}
|
||||
--- !u!1 &7475116342845757237
|
||||
GameObject:
|
||||
|
800
Assets/Developer/Prefabs/UI/CharacterToggle.prefab
Normal file
800
Assets/Developer/Prefabs/UI/CharacterToggle.prefab
Normal file
@ -0,0 +1,800 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &3834323965554369785
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3076402980628114852}
|
||||
- component: {fileID: 1869402693706025331}
|
||||
- component: {fileID: 5383966428709458830}
|
||||
m_Layer: 5
|
||||
m_Name: Knight
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
--- !u!224 &3076402980628114852
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3834323965554369785}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.66412, y: 0.66412, z: 0.66412}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 8058772897285458236}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 1, y: 0.5}
|
||||
m_AnchorMax: {x: 1, y: 0.5}
|
||||
m_AnchoredPosition: {x: -18.2, y: 0}
|
||||
m_SizeDelta: {x: 68, y: 50}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1869402693706025331
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3834323965554369785}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &5383966428709458830
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3834323965554369785}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 0
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: 43ec3f0dab32b934bb86fd4614e3872c, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!1 &4766369134267465023
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 489618253125517245}
|
||||
- component: {fileID: 7748375150907119215}
|
||||
- component: {fileID: 8473400115426976666}
|
||||
m_Layer: 5
|
||||
m_Name: Priest
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
--- !u!224 &489618253125517245
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4766369134267465023}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.66412, y: 0.66412, z: 0.66412}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 8058772897285458236}
|
||||
m_RootOrder: 3
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 1, y: 0.5}
|
||||
m_AnchorMax: {x: 1, y: 0.5}
|
||||
m_AnchoredPosition: {x: -18.199982, y: 0}
|
||||
m_SizeDelta: {x: 68, y: 50}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &7748375150907119215
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4766369134267465023}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &8473400115426976666
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4766369134267465023}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 0
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: 33125492031e5d14db4af431fd116869, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!1 &4855158444545667857
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 5152611503981543949}
|
||||
- component: {fileID: 4371357056531413994}
|
||||
- component: {fileID: 6178128934534010392}
|
||||
m_Layer: 5
|
||||
m_Name: Barb
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
--- !u!224 &5152611503981543949
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4855158444545667857}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.66412, y: 0.66412, z: 0.66412}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 8058772897285458236}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 1, y: 0.5}
|
||||
m_AnchorMax: {x: 1, y: 0.5}
|
||||
m_AnchoredPosition: {x: -18.199982, y: 0}
|
||||
m_SizeDelta: {x: 68, y: 50}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &4371357056531413994
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4855158444545667857}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &6178128934534010392
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4855158444545667857}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 0
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: 23ef5a7692693cd428d87441042dfa2e, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!1 &7416370242028689303
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8058772897285458236}
|
||||
- component: {fileID: 4268968791981903328}
|
||||
m_Layer: 5
|
||||
m_Name: ClassIcons
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &8058772897285458236
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7416370242028689303}
|
||||
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_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 5152611503981543949}
|
||||
- {fileID: 3076402980628114852}
|
||||
- {fileID: 8100285884061424079}
|
||||
- {fileID: 489618253125517245}
|
||||
m_Father: {fileID: 8100285883651857479}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 1, y: 0.5}
|
||||
m_AnchorMax: {x: 1, y: 0.5}
|
||||
m_AnchoredPosition: {x: -40, y: 0}
|
||||
m_SizeDelta: {x: 54.5292, y: 40.095}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &4268968791981903328
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7416370242028689303}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &8100285883651857478
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8100285883651857479}
|
||||
- component: {fileID: 8100285883651857472}
|
||||
- component: {fileID: 8032684287803596661}
|
||||
- component: {fileID: 390169453469270775}
|
||||
- component: {fileID: 4359252993012787211}
|
||||
m_Layer: 5
|
||||
m_Name: CharacterToggle
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &8100285883651857479
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8100285883651857478}
|
||||
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_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 8100285883972735630}
|
||||
- {fileID: 8100285884138173478}
|
||||
- {fileID: 8058772897285458236}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 300, y: 50}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &8100285883651857472
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8100285883651857478}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 9085046f02f69544eb97fd06b6048fe2, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_WrapAround: 0
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_SelectedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_SelectedTrigger: Selected
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 4359252993012787211}
|
||||
toggleTransition: 1
|
||||
graphic: {fileID: 8100285884349667222}
|
||||
m_Group: {fileID: 0}
|
||||
onValueChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_IsOn: 0
|
||||
--- !u!114 &8032684287803596661
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8100285883651857478}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 3160d2a4b0095c04988a32038f6c7956, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
selectedCharacterName: {fileID: 11400000, guid: cd1db8fcd2e3a1d48863ec2ebafa5fbd, type: 2}
|
||||
toggle: {fileID: 8100285883651857472}
|
||||
characterName: {fileID: 8100285884138173479}
|
||||
classIcon:
|
||||
- {fileID: 4855158444545667857}
|
||||
- {fileID: 3834323965554369785}
|
||||
- {fileID: 8100285884061424078}
|
||||
- {fileID: 4766369134267465023}
|
||||
character:
|
||||
playerOwnerID:
|
||||
characterName:
|
||||
characterClass:
|
||||
currentLevel: 1
|
||||
currentExperience: 0
|
||||
availablePointsToAllocate: 0
|
||||
allocatedStatPoints: 0000000000000000000000000000000000000000
|
||||
--- !u!222 &390169453469270775
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8100285883651857478}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &4359252993012787211
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8100285883651857478}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: dd4120968d53c4341ba6879310b178c4, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!1 &8100285883972735629
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8100285883972735630}
|
||||
- component: {fileID: 8100285883972735624}
|
||||
- component: {fileID: 8100285883972735631}
|
||||
m_Layer: 5
|
||||
m_Name: Background
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &8100285883972735630
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8100285883972735629}
|
||||
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_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 8100285884349667221}
|
||||
m_Father: {fileID: 8100285883651857479}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0.5}
|
||||
m_AnchorMax: {x: 0, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 50, y: 50}
|
||||
m_Pivot: {x: 0, y: 0.5}
|
||||
--- !u!222 &8100285883972735624
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8100285883972735629}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &8100285883972735631
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8100285883972735629}
|
||||
m_Enabled: 0
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 0
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!1 &8100285884061424078
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8100285884061424079}
|
||||
- component: {fileID: 8100285884061424073}
|
||||
- component: {fileID: 8100285884061424072}
|
||||
m_Layer: 5
|
||||
m_Name: Mage
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
--- !u!224 &8100285884061424079
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8100285884061424078}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.66412, y: 0.66412, z: 0.66412}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 8058772897285458236}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 1, y: 0.5}
|
||||
m_AnchorMax: {x: 1, y: 0.5}
|
||||
m_AnchoredPosition: {x: -18.199982, y: 0}
|
||||
m_SizeDelta: {x: 68, y: 50}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &8100285884061424073
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8100285884061424078}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &8100285884061424072
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8100285884061424078}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 0
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: 2069f54d7d670874ebddb4f776599fca, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!1 &8100285884138173477
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8100285884138173478}
|
||||
- component: {fileID: 8100285884138173472}
|
||||
- component: {fileID: 8100285884138173479}
|
||||
m_Layer: 5
|
||||
m_Name: character name
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &8100285884138173478
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8100285884138173477}
|
||||
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_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 8100285883651857479}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 1}
|
||||
m_AnchorMax: {x: 0.5, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: -25}
|
||||
m_SizeDelta: {x: 180, y: 35}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &8100285884138173472
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8100285884138173477}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &8100285884138173479
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8100285884138173477}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 0
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: Character Name
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
m_fontColor32:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_enableVertexGradient: 0
|
||||
m_colorMode: 3
|
||||
m_fontColorGradient:
|
||||
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_fontColorGradientPreset: {fileID: 0}
|
||||
m_spriteAsset: {fileID: 0}
|
||||
m_tintAllSprites: 0
|
||||
m_StyleSheet: {fileID: 0}
|
||||
m_TextStyleHashCode: -1183493901
|
||||
m_overrideHtmlColors: 0
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 21.65
|
||||
m_fontSizeBase: 36
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 1
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 35
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 2
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
m_enableWordWrapping: 1
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 1
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 1
|
||||
m_parseCtrlCharacters: 1
|
||||
m_isOrthographic: 1
|
||||
m_isCullingEnabled: 0
|
||||
m_horizontalMapping: 0
|
||||
m_verticalMapping: 0
|
||||
m_uvLineOffset: 0
|
||||
m_geometrySortingOrder: 0
|
||||
m_IsTextObjectScaleStatic: 0
|
||||
m_VertexBufferAutoSizeReduction: 0
|
||||
m_useMaxVisibleDescender: 1
|
||||
m_pageToDisplay: 1
|
||||
m_margin: {x: 10, y: 0, z: 10, w: 0}
|
||||
m_isUsingLegacyAnimationComponent: 0
|
||||
m_isVolumetricText: 0
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!1 &8100285884349667220
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8100285884349667221}
|
||||
- component: {fileID: 8100285884349667223}
|
||||
- component: {fileID: 8100285884349667222}
|
||||
m_Layer: 5
|
||||
m_Name: Checkmark
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &8100285884349667221
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8100285884349667220}
|
||||
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_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 8100285883972735630}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 40, y: 40}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &8100285884349667223
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8100285884349667220}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &8100285884349667222
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8100285884349667220}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 0
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: 3f2dbe50d6b1a0f4ca343324c5077160, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
7
Assets/Developer/Prefabs/UI/CharacterToggle.prefab.meta
Normal file
7
Assets/Developer/Prefabs/UI/CharacterToggle.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b512b3cf953ac83409c7896a9be8a49c
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -38,7 +38,7 @@ RenderSettings:
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
m_IndirectSpecularColor: {r: 0.06278516, g: 0.12559548, b: 0.13114206, a: 1}
|
||||
m_IndirectSpecularColor: {r: 0.06319956, g: 0.12643299, b: 0.1320244, a: 1}
|
||||
m_UseRadianceAmbientProbe: 0
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
@ -394,7 +394,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: b77bdd6e00341854b9348c5dd9bd3fef, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
nextScene: 1-SetNickname
|
||||
nextScene: 1-EnterAccountName
|
||||
--- !u!1 &966793465
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -1444,6 +1444,246 @@ PrefabInstance:
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643950268578271, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643950268578271, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643950268578271, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643950268578271, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643950268578271, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643950268578271, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643950640157397, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643950640157397, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643950640157397, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643950640157397, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643950640157397, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643950640157397, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643950866280464, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643950866280464, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643950866280464, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643950866280464, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643950866280464, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643950866280464, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951109548461, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951109548461, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951109548461, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951109548461, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951109548461, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951109548461, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951284417893, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951284417893, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951284417893, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951284417893, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951284417893, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951284417893, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951407787384, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951407787384, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951407787384, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951407787384, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951407787384, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951407787384, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951884640313, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951884640313, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951884640313, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951884640313, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951884640313, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951884640313, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951901827828, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951901827828, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951901827828, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951901827828, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951901827828, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643951901827828, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643952195008083, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643952195008083, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643952195008083, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643952195008083, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643952195008083, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643952195008083, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643952287903420, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643952287903420, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643952287903420, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643952287903420, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643952287903420, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6134643952287903420, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7227319219501551729, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
@ -1712,6 +1952,14 @@ PrefabInstance:
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7475116342305660313, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7475116342305660313, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7475116342305770233, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
@ -1760,6 +2008,14 @@ PrefabInstance:
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7475116342305831057, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7475116342305831057, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7475116342305832019, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
@ -1784,6 +2040,14 @@ PrefabInstance:
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7475116342305856963, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7475116342305856963, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7840512114539168951, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
|
@ -38,7 +38,7 @@ RenderSettings:
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
m_IndirectSpecularColor: {r: 0.05918527, g: 0.11863911, b: 0.12385166, a: 1}
|
||||
m_IndirectSpecularColor: {r: 0.06319956, g: 0.12643299, b: 0.1320244, a: 1}
|
||||
m_UseRadianceAmbientProbe: 0
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
@ -842,7 +842,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 9937a46ab89124d46a79fb0b749c65b4, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
nick: {fileID: 11400000, guid: 4c5594d118d8a274581985f852194b53, type: 2}
|
||||
accountName: {fileID: 11400000, guid: 4c5594d118d8a274581985f852194b53, type: 2}
|
||||
button: {fileID: 966793467}
|
||||
--- !u!4 &874882671
|
||||
Transform:
|
||||
@ -1051,7 +1051,7 @@ MonoBehaviour:
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: Choose Nickname
|
||||
m_text: Enter Account Name
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: e53b4ab145ea90a4f893624318d62bf8, type: 2}
|
||||
m_sharedMaterial: {fileID: -2669144802238463443, guid: e53b4ab145ea90a4f893624318d62bf8, type: 2}
|
5487
Assets/Scenes/2-CharacterList.unity
Normal file
5487
Assets/Scenes/2-CharacterList.unity
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/Scenes/2-CharacterList.unity.meta
Normal file
7
Assets/Scenes/2-CharacterList.unity.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d3e87ed84c51bc143a1d63f4dd1599cb
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Assets/Scriptables/Data/0-Player.meta
Normal file
8
Assets/Scriptables/Data/0-Player.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7efb4949691a80a4bb0916ca0ca2bf2d
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -10,7 +10,7 @@ MonoBehaviour:
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 1a2e5d7b83df65849a2b2802f813d168, type: 3}
|
||||
m_Name: PlayerNickname
|
||||
m_Name: CharacterName
|
||||
m_EditorClassIdentifier:
|
||||
gameEvent: {fileID: 0}
|
||||
value: Alfredo
|
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cd1db8fcd2e3a1d48863ec2ebafa5fbd
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
16
Assets/Scriptables/Data/0-Player/PlayerAccountName.asset
Normal file
16
Assets/Scriptables/Data/0-Player/PlayerAccountName.asset
Normal file
@ -0,0 +1,16 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 1a2e5d7b83df65849a2b2802f813d168, type: 3}
|
||||
m_Name: PlayerAccountName
|
||||
m_EditorClassIdentifier:
|
||||
gameEvent: {fileID: 0}
|
||||
value: Alfredo
|
@ -4,22 +4,28 @@ public static class GameConstants
|
||||
{
|
||||
#region PlayerPrefs Keys
|
||||
|
||||
public static string PlayerAccountDataKey = "playerAccountData";
|
||||
public static string CharacterDataKey = "characterData";
|
||||
public static string CharacterInventoryDataKey = "characterInventoryData";
|
||||
public static string CharacterEquipmentDataKey = "characterEquipmentData";
|
||||
public static string PlayerCoinKey = "playerCoin";
|
||||
|
||||
public static string GetCharacterDataKey(string characterName)
|
||||
|
||||
public static string GetPlayerAccountDataKey(string playerName)
|
||||
{
|
||||
return CharacterDataKey + "-" + characterName;
|
||||
return PlayerAccountDataKey + "-" + playerName;
|
||||
}
|
||||
public static string GetCharacterInventoryDataKey(string characterName)
|
||||
public static string GetCharacterDataKey(string playerName, string characterName)
|
||||
{
|
||||
return CharacterInventoryDataKey + "-" + characterName;
|
||||
return CharacterDataKey + "-" + playerName + "-" + characterName;
|
||||
}
|
||||
public static string GetCharacterEquipmentDataKey(string characterName)
|
||||
public static string GetCharacterInventoryDataKey(string playerName, string characterName)
|
||||
{
|
||||
return CharacterEquipmentDataKey + "-" + characterName;
|
||||
return CharacterInventoryDataKey + "-" + playerName + "-" + characterName;
|
||||
}
|
||||
public static string GetCharacterEquipmentDataKey(string playerName, string characterName)
|
||||
{
|
||||
return CharacterEquipmentDataKey + "-" + playerName + "-" + characterName;
|
||||
}
|
||||
public static string GetPlayerCoinKey(string playerName)
|
||||
{
|
||||
|
@ -29,7 +29,12 @@ public class PlayerDataHandler : MonoBehaviour
|
||||
return _instance;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
public StringSharedField currentPlayerName;
|
||||
|
||||
PlayerAccountData playerAccountData = new PlayerAccountData();
|
||||
string playerAccountDataKey;
|
||||
|
||||
CharacterData characterData = new CharacterData();
|
||||
string characterDataKey;
|
||||
@ -48,10 +53,29 @@ public class PlayerDataHandler : MonoBehaviour
|
||||
DontDestroyOnLoad(this);
|
||||
}
|
||||
|
||||
// Character Data (Level, exp etc)
|
||||
public CharacterData LoadCharacterData(string characterName)
|
||||
// Player account data (user name, character names list)
|
||||
public PlayerAccountData LoadPlayerAccountData(string playerName)
|
||||
{
|
||||
characterDataKey = GameConstants.PlayerPrefsKeys.GetCharacterDataKey(characterName);
|
||||
playerAccountDataKey = GameConstants.PlayerPrefsKeys.GetPlayerAccountDataKey(playerName);
|
||||
|
||||
if (GameStatePersistenceManager.Instance.HasDataForKey(playerAccountDataKey))
|
||||
{
|
||||
playerAccountData = GameStatePersistenceManager.Instance.LoadData<PlayerAccountData>(playerAccountDataKey);
|
||||
return playerAccountData;
|
||||
}
|
||||
else return null;
|
||||
}
|
||||
public void SavePlayerAccountData(string playerName, PlayerAccountData playerAccountData)
|
||||
{
|
||||
playerAccountDataKey = GameConstants.PlayerPrefsKeys.GetPlayerAccountDataKey(playerName);
|
||||
|
||||
GameStatePersistenceManager.Instance.SaveData(playerAccountDataKey, playerAccountData);
|
||||
}
|
||||
|
||||
// Character Data (Level, exp etc)
|
||||
public CharacterData LoadCharacterData(string playerName, string characterName)
|
||||
{
|
||||
characterDataKey = GameConstants.PlayerPrefsKeys.GetCharacterDataKey(playerName, characterName);
|
||||
|
||||
if (GameStatePersistenceManager.Instance.HasDataForKey(characterDataKey))
|
||||
{
|
||||
@ -60,17 +84,17 @@ public class PlayerDataHandler : MonoBehaviour
|
||||
}
|
||||
else return null;
|
||||
}
|
||||
public void SaveCharacterData(string characterName, CharacterData characterData)
|
||||
public void SaveCharacterData(string playerName, string characterName, CharacterData characterData)
|
||||
{
|
||||
characterDataKey = GameConstants.PlayerPrefsKeys.GetCharacterDataKey(characterName);
|
||||
characterDataKey = GameConstants.PlayerPrefsKeys.GetCharacterDataKey(playerName, characterName);
|
||||
|
||||
GameStatePersistenceManager.Instance.SaveData(characterDataKey, characterData);
|
||||
}
|
||||
|
||||
// Player Coin Data (global coin amount)
|
||||
public CoinData LoadPlayerCoinData(string characterName)
|
||||
public CoinData LoadPlayerCoinData(string playerName)
|
||||
{
|
||||
playerCoinKey = GameConstants.PlayerPrefsKeys.GetPlayerCoinKey(characterName);
|
||||
playerCoinKey = GameConstants.PlayerPrefsKeys.GetPlayerCoinKey(playerName);
|
||||
|
||||
if (GameStatePersistenceManager.Instance.HasDataForKey(playerCoinKey))
|
||||
{
|
||||
@ -80,18 +104,18 @@ public class PlayerDataHandler : MonoBehaviour
|
||||
else
|
||||
return null;
|
||||
}
|
||||
public void SavePlayerCoinData(string characterName, CoinData coinData)
|
||||
public void SavePlayerCoinData(string playerName, CoinData coinData)
|
||||
{
|
||||
playerCoinKey = GameConstants.PlayerPrefsKeys.GetPlayerCoinKey(characterName);
|
||||
playerCoinKey = GameConstants.PlayerPrefsKeys.GetPlayerCoinKey(playerName);
|
||||
|
||||
GameStatePersistenceManager.Instance.SaveData(playerCoinKey, coinData);
|
||||
}
|
||||
|
||||
|
||||
// Character Equipment Data (equipped items)
|
||||
public EquipmentData LoadCharacterEquipmentData(string characterName)
|
||||
public EquipmentData LoadCharacterEquipmentData(string playerName, string characterName)
|
||||
{
|
||||
equipmentDataKey = GameConstants.PlayerPrefsKeys.GetCharacterEquipmentDataKey(characterName);
|
||||
equipmentDataKey = GameConstants.PlayerPrefsKeys.GetCharacterEquipmentDataKey(playerName, characterName);
|
||||
|
||||
if (GameStatePersistenceManager.Instance.HasDataForKey(equipmentDataKey))
|
||||
{
|
||||
@ -100,18 +124,18 @@ public class PlayerDataHandler : MonoBehaviour
|
||||
}
|
||||
else return null;
|
||||
}
|
||||
public void SaveCharacterEquipmentData(string characterName, EquipmentData equipmentData)
|
||||
public void SaveCharacterEquipmentData(string playerName, string characterName, EquipmentData equipmentData)
|
||||
{
|
||||
equipmentDataKey = GameConstants.PlayerPrefsKeys.GetCharacterEquipmentDataKey(characterName);
|
||||
equipmentDataKey = GameConstants.PlayerPrefsKeys.GetCharacterEquipmentDataKey(playerName, characterName);
|
||||
|
||||
GameStatePersistenceManager.Instance.SaveData(equipmentDataKey, equipmentData);
|
||||
}
|
||||
|
||||
|
||||
// Character Inventory Data (items on inventory)
|
||||
public InventoryData LoadCharacterInventoryData(string characterName)
|
||||
public InventoryData LoadCharacterInventoryData(string playerName, string characterName)
|
||||
{
|
||||
inventoryDataKey = GameConstants.PlayerPrefsKeys.GetCharacterInventoryDataKey(characterName);
|
||||
inventoryDataKey = GameConstants.PlayerPrefsKeys.GetCharacterInventoryDataKey(playerName, characterName);
|
||||
|
||||
if (GameStatePersistenceManager.Instance.HasDataForKey(inventoryDataKey))
|
||||
{
|
||||
@ -120,9 +144,9 @@ public class PlayerDataHandler : MonoBehaviour
|
||||
}
|
||||
else return null;
|
||||
}
|
||||
public void SaveCharacterInventoryData(string characterName, InventoryData inventoryData)
|
||||
public void SaveCharacterInventoryData(string playerName, string characterName, InventoryData inventoryData)
|
||||
{
|
||||
inventoryDataKey = GameConstants.PlayerPrefsKeys.GetCharacterInventoryDataKey(characterName);
|
||||
inventoryDataKey = GameConstants.PlayerPrefsKeys.GetCharacterInventoryDataKey(playerName, characterName);
|
||||
|
||||
GameStatePersistenceManager.Instance.SaveData(inventoryDataKey, inventoryData);
|
||||
}
|
||||
|
@ -6,6 +6,8 @@ using UnityEngine;
|
||||
public class CharacterData
|
||||
{
|
||||
public string playerOwnerID; //Future multiple accounts on same device + character selection
|
||||
public string characterName;
|
||||
public string characterClass;
|
||||
|
||||
public int currentLevel;
|
||||
public float currentExperience;
|
||||
|
37
Assets/Scripts/SaveData/PlayerAccountData.cs
Normal file
37
Assets/Scripts/SaveData/PlayerAccountData.cs
Normal file
@ -0,0 +1,37 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
[System.Serializable]
|
||||
public class PlayerAccountData
|
||||
{
|
||||
public string userName;
|
||||
public List<string> characterNames = new List<string>();
|
||||
|
||||
public PlayerAccountData()
|
||||
{
|
||||
userName = "Player1";
|
||||
characterNames = new List<string>();
|
||||
}
|
||||
public PlayerAccountData(string userName)
|
||||
{
|
||||
this.userName = userName;
|
||||
characterNames = new List<string>();
|
||||
}
|
||||
public PlayerAccountData(string userName, List<string> characters)
|
||||
{
|
||||
this.userName = userName;
|
||||
characterNames = characters;
|
||||
}
|
||||
|
||||
public void AddCharacterToPlayerAccount(string characterName)
|
||||
{
|
||||
if (!characterNames.Contains(characterName))
|
||||
{
|
||||
characterNames.Add(characterName);
|
||||
Debug.Log("Added: " + characterName + " to account with name: " + userName);
|
||||
}
|
||||
else
|
||||
Debug.Log($"Failed to add {characterName} because this account already contains this name on the list");
|
||||
}
|
||||
}
|
11
Assets/Scripts/SaveData/PlayerAccountData.cs.meta
Normal file
11
Assets/Scripts/SaveData/PlayerAccountData.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 535f73166bb3a9b48a2d48f833d3e288
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -6,7 +6,7 @@ using UnityEngine.UI;
|
||||
|
||||
public class SetNickName : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private StringSharedField nick;
|
||||
[SerializeField] private StringSharedField accountName;
|
||||
[SerializeField] private Button button;
|
||||
|
||||
private void Start()
|
||||
@ -15,8 +15,8 @@ public class SetNickName : MonoBehaviour
|
||||
}
|
||||
public void OnInputFieldChanged(string value)
|
||||
{
|
||||
nick.Value = value;
|
||||
PhotonNetwork.NickName = value;
|
||||
accountName.Value = value;
|
||||
//PhotonNetwork.NickName = value;
|
||||
button.interactable = !string.IsNullOrEmpty(value);
|
||||
}
|
||||
}
|
||||
|
41
Assets/Scripts/UI/CharacterListController.cs
Normal file
41
Assets/Scripts/UI/CharacterListController.cs
Normal file
@ -0,0 +1,41 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class CharacterListController : MonoBehaviour
|
||||
{
|
||||
public GameObject togglePrefab;
|
||||
public StringSharedField playerAccountName;
|
||||
|
||||
public Transform listParent;
|
||||
|
||||
GameObject characterToggleGO;
|
||||
CharacterToggleInstance characterToggle;
|
||||
|
||||
PlayerAccountData playerAccount;
|
||||
CharacterData characterData;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
playerAccount = PlayerDataHandler.Instance.LoadPlayerAccountData(playerAccountName.Value);
|
||||
}
|
||||
|
||||
private void Start()
|
||||
{
|
||||
GenerateCharacterListFromAccountData(playerAccount);
|
||||
}
|
||||
|
||||
|
||||
private void GenerateCharacterListFromAccountData(PlayerAccountData accountData)
|
||||
{
|
||||
foreach (string characterName in accountData.characterNames)
|
||||
{
|
||||
characterData = PlayerDataHandler.Instance.LoadCharacterData(playerAccountName.Value, characterName);
|
||||
|
||||
characterToggleGO = Instantiate(togglePrefab, listParent);
|
||||
characterToggle = characterToggleGO.GetComponent<CharacterToggleInstance>();
|
||||
|
||||
characterToggle.InitializeCharacterToggle(characterData);
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/Scripts/UI/CharacterListController.cs.meta
Normal file
11
Assets/Scripts/UI/CharacterListController.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 458f550c43628c644b9c3bebd3ca2f21
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
33
Assets/Scripts/UI/CharacterListScreenAnim.cs
Normal file
33
Assets/Scripts/UI/CharacterListScreenAnim.cs
Normal file
@ -0,0 +1,33 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class CharacterListScreenAnim : MonoBehaviour
|
||||
{
|
||||
public StringSharedField selectedCharacterName;
|
||||
public List<GameObject> characters;
|
||||
|
||||
public void UpdateClassIcon(string characterClass)
|
||||
{
|
||||
for (int i = 0; i < characters.Count; i++)
|
||||
{
|
||||
if (characterClass.Contains(characters[i].name))
|
||||
{
|
||||
characters[i].SetActive(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
characters[i].SetActive(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
if (selectedCharacterName == null) return;
|
||||
|
||||
if (string.IsNullOrEmpty(selectedCharacterName.Value)) return;
|
||||
|
||||
UpdateClassIcon(selectedCharacterName.Value);
|
||||
}
|
||||
}
|
11
Assets/Scripts/UI/CharacterListScreenAnim.cs.meta
Normal file
11
Assets/Scripts/UI/CharacterListScreenAnim.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 06a35a9407f23d14b93a0b677d680bc4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
51
Assets/Scripts/UI/CharacterToggleInstance.cs
Normal file
51
Assets/Scripts/UI/CharacterToggleInstance.cs
Normal file
@ -0,0 +1,51 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class CharacterToggleInstance : MonoBehaviour
|
||||
{
|
||||
public StringSharedField selectedCharacterName;
|
||||
public Toggle toggle;
|
||||
public TMP_Text characterName;
|
||||
public List<GameObject> classIcon;
|
||||
|
||||
public CharacterData character;
|
||||
|
||||
ToggleGroup toggleGroup;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
toggleGroup = GetComponentInParent<ToggleGroup>();
|
||||
|
||||
toggle.group = toggleGroup;
|
||||
}
|
||||
|
||||
public void InitializeCharacterToggle(CharacterData characterData)
|
||||
{
|
||||
character = characterData;
|
||||
characterName.text = characterData.characterName;
|
||||
UpdateClassIcon(characterData.characterClass);
|
||||
}
|
||||
|
||||
public void UpdateClassIcon(string characterClass)
|
||||
{
|
||||
for (int i = 0; i < classIcon.Count; i++)
|
||||
{
|
||||
if (characterClass.Contains(classIcon[i].name))
|
||||
{
|
||||
classIcon[i].SetActive(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
classIcon[i].SetActive(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void OnValueChanged(bool value)
|
||||
{
|
||||
if (value) selectedCharacterName.Value = character.characterName;
|
||||
}
|
||||
}
|
11
Assets/Scripts/UI/CharacterToggleInstance.cs.meta
Normal file
11
Assets/Scripts/UI/CharacterToggleInstance.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3160d2a4b0095c04988a32038f6c7956
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -9,7 +9,7 @@ EditorBuildSettings:
|
||||
path: Assets/Scenes/0-Splash.unity
|
||||
guid: 49b9aac00e56c3e41baf7e7f3e3c77e3
|
||||
- enabled: 1
|
||||
path: Assets/Scenes/1-SetNickname.unity
|
||||
path: Assets/Scenes/1-EnterAccountName.unity
|
||||
guid: 449be8d98300b9641aedc89848644797
|
||||
- enabled: 1
|
||||
path: Assets/Scenes/2-ChooseCharacter.unity
|
||||
|
Loading…
x
Reference in New Issue
Block a user