UI update 02
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -9800,6 +9800,7 @@ MonoBehaviour:
|
||||
ui_Panel_Character: {fileID: 4117201555059243452}
|
||||
button_Encyclopendia: {fileID: 1211150764211143563}
|
||||
ui_Panel_Encyclopendia: {fileID: 4085891565661738151}
|
||||
notebook_father: {fileID: 0}
|
||||
image_Character: {fileID: 2579155398995094700}
|
||||
button_Mail: {fileID: 3719595577548363312}
|
||||
ui_Panel_Mail: {fileID: 4784173047268348040}
|
||||
@@ -9813,9 +9814,129 @@ MonoBehaviour:
|
||||
ui_Panel_Story: {fileID: 6352806538944209249}
|
||||
button_Setting: {fileID: 1176641313823147389}
|
||||
ui_Panel_Setting: {fileID: 4409913307177745152}
|
||||
button_worldChat: {fileID: 0}
|
||||
worldChatObject: {fileID: 0}
|
||||
prefab_Enter_Time: 0.35
|
||||
prefab_Enter_Scale_From: 0.92
|
||||
prefab_Enter_Ease: 9
|
||||
button_Idol: {fileID: 0}
|
||||
ui_Panel_Idol: {fileID: 0}
|
||||
button_Select_Music: {fileID: 6706780112056706141}
|
||||
ui_Select_Music_Scene_Name: selectYourSongFirst
|
||||
play_Enter_OnEnable: 1
|
||||
enter_Wait_Timeout: 1.5
|
||||
enter_UI_Speed: 1.25
|
||||
enter_Zoom_Time: 0.6
|
||||
enter_Zoom_Scale_From: 1.2
|
||||
enter_Zoom_Ease: 9
|
||||
enter_Background_Time: 0.6
|
||||
enter_Background_Scale_From: 1.12
|
||||
enter_Background_Ease: 9
|
||||
enter_Bar_Time: 0.45
|
||||
enter_Item_Time: 0.35
|
||||
enter_Stagger: 0.06
|
||||
enter_Offset_X: 140
|
||||
enter_Offset_Y: 120
|
||||
enter_Item_Offset_X: 40
|
||||
enter_Item_Offset_Y: 40
|
||||
enter_Move_Ease: 9
|
||||
play_Background_Deco_Enter: 1
|
||||
bg_Deco_Time: 0.45
|
||||
bg_Deco_Stagger: 0.04
|
||||
bg_Deco_Offset: 60
|
||||
bg_Deco_Rotate: 6
|
||||
bg_Deco_Scale_From: 0.9
|
||||
bg_Deco_Ease: 9
|
||||
background_Bg2: {fileID: 0}
|
||||
play_Background_Loop: 0
|
||||
bg_Loop_Offset: 12
|
||||
bg_Loop_Time: 6
|
||||
bg_Loop_Ease: 4
|
||||
play_Mouse_Gyro: 1
|
||||
gyro_Require_Enter_Complete: 1
|
||||
gyro_Use_Unscaled: 1
|
||||
gyro_Target: {fileID: 0}
|
||||
gyro_Character_Rect: {fileID: 0}
|
||||
gyro_Dialog_Rect: {fileID: 0}
|
||||
gyro_Max_Offset: 5
|
||||
gyro_Offset_Scale: 7
|
||||
gyro_Character_Weight: 1
|
||||
gyro_Dialog_Weight: 1.35
|
||||
gyro_Background_Weight: 0.8
|
||||
gyro_RightButtons_Rotation_Weight: 0.6
|
||||
gyro_DailyTasks_Rotation_Weight: 0.6
|
||||
gyro_Max_Rotation: 2
|
||||
gyro_Rotation_X: 1
|
||||
gyro_Rotation_Y: 1
|
||||
gyro_Rotation_Z: 0.35
|
||||
gyro_Smooth: 8
|
||||
gyro_Apply_BG_Scale: 0
|
||||
gyro_BG_Extra_Scale: 1.06
|
||||
gyro_All_Offset_Min: 0.6
|
||||
gyro_All_Offset_Max: 1.2
|
||||
gyro_Only_Leaf: 1
|
||||
gyro_Include_BG_Children: 0
|
||||
gyro_BG_Child_Offset_Min: 0.2
|
||||
gyro_BG_Child_Offset_Max: 0.8
|
||||
gyro_BG_Child_Rotation_Min: 0.1
|
||||
gyro_BG_Child_Rotation_Max: 0.5
|
||||
play_Button_Interact: 1
|
||||
button_Hover_Scale: 1.04
|
||||
button_Press_Scale: 0.96
|
||||
button_Hover_Time: 0.08
|
||||
button_Press_Time: 0.06
|
||||
button_Release_Time: 0.12
|
||||
button_Hover_Ease: 6
|
||||
button_Press_Ease: 6
|
||||
button_Release_Ease: 27
|
||||
play_RightButtons_Hover: 1
|
||||
rightButton_Image_Idle_Offset: 180
|
||||
rightButton_Image_Final_Offset: 60
|
||||
rightButton_Image_Move_Time: 0.18
|
||||
rightButton_Image_Ease: 9
|
||||
rightButton_Text_Flash_Time: 0.06
|
||||
rightButton_Text_Flash_Count: 2
|
||||
rightButton_Text_Flash_Interval: 0.02
|
||||
fix_Button_Raycast: 1
|
||||
fix_Button_Raycast_Log: 0
|
||||
content_Root: {fileID: 0}
|
||||
zoom_MainRoot: {fileID: 0}
|
||||
zoom_BarsRoot: {fileID: 0}
|
||||
group_Background: {fileID: 0}
|
||||
group_Top: {fileID: 0}
|
||||
group_Bottom: {fileID: 0}
|
||||
group_Center: {fileID: 0}
|
||||
group_DailyTasks: {fileID: 0}
|
||||
group_RightButtons: {fileID: 0}
|
||||
group_RightButtons_Alt: {fileID: 0}
|
||||
else_Button: {fileID: 0}
|
||||
group_StartButton: {fileID: 0}
|
||||
dailyTask_BG: {fileID: 0}
|
||||
dailyTask_BG_1: {fileID: 0}
|
||||
dailyTask_BG_2: {fileID: 0}
|
||||
top_PlayerName: {fileID: 0}
|
||||
button_Character_Set_Rect: {fileID: 0}
|
||||
launch_EzGame_Rect: {fileID: 0}
|
||||
character_Dialog_Controller: {fileID: 0}
|
||||
play_Jiantou_Loop: 1
|
||||
jiantou_Require_Hover: 1
|
||||
jiantou_Left_Template: {fileID: 0}
|
||||
jiantou_Right_Template: {fileID: 0}
|
||||
jiantou_Name_Contains: jiantou
|
||||
jiantou_Pool_Size: 6
|
||||
jiantou_Move_Amplitude: 120
|
||||
jiantou_Move_Duration: 8
|
||||
jiantou_Stagger: 0.35
|
||||
jiantou_Spacing: 180
|
||||
jiantou_Hover_Move_Duration: 3
|
||||
jiantou_Hover_Stagger: 0.15
|
||||
jiantou_Hover_Spacing: 120
|
||||
jiantou_Random_Y: 0
|
||||
jiantou_Alpha_Min: 0.35
|
||||
jiantou_Alpha_Max: 1
|
||||
jiantou_Flash_Count: 3
|
||||
jiantou_Flash_Time: 0.06
|
||||
jiantou_Flash_Interval: 0.04
|
||||
character_Illustration_Time: 0.5
|
||||
--- !u!1 &7857607677220165758
|
||||
GameObject:
|
||||
|
||||
@@ -1,5 +1,80 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &6982689905656928890
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 6860638885831926403}
|
||||
- component: {fileID: 8176808537246840981}
|
||||
- component: {fileID: 3650970312932695179}
|
||||
m_Layer: 5
|
||||
m_Name: heroProfile
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &6860638885831926403
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6982689905656928890}
|
||||
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: 2698123542832443311}
|
||||
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: 152, y: 205}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &8176808537246840981
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6982689905656928890}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &3650970312932695179
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6982689905656928890}
|
||||
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: 9096885730913253353, guid: b065cd31161e1bd4c871e8fd1c9d368d, 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 &7700495011714786251
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -10,6 +85,7 @@ GameObject:
|
||||
m_Component:
|
||||
- component: {fileID: 2698123542832443311}
|
||||
- component: {fileID: 8408867080419616168}
|
||||
- component: {fileID: 7850357097831154310}
|
||||
- component: {fileID: 4792987294952551588}
|
||||
- component: {fileID: 6870718339589324299}
|
||||
- component: {fileID: 3587359298198180232}
|
||||
@@ -33,13 +109,14 @@ RectTransform:
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 4503161163256181978}
|
||||
- {fileID: 6561343147245452701}
|
||||
- {fileID: 6860638885831926403}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 770.27435, y: 383.8505}
|
||||
m_SizeDelta: {x: 80, y: 107}
|
||||
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: 160.3, y: 211}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &8408867080419616168
|
||||
CanvasRenderer:
|
||||
@@ -49,6 +126,23 @@ CanvasRenderer:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7700495011714786251}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &7850357097831154310
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7700495011714786251}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fa7286e478fe9a94bb137978315eeaad, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
characterProfileButton: {fileID: 6870718339589324299}
|
||||
thisCharacterProfile: {fileID: 3650970312932695179}
|
||||
beingSelected: {fileID: 828498842158973289}
|
||||
grayScaleMaterial: {fileID: 2100000, guid: 7701c15f96b443d408ac83222c9b869a, type: 2}
|
||||
thisHeroId: 0
|
||||
--- !u!114 &4792987294952551588
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -69,7 +163,7 @@ MonoBehaviour:
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: 8ec62ab8ffad7644fa1b78bb4b8a273d, type: 3}
|
||||
m_Sprite: {fileID: 6175548864125150824, guid: eef26ee24e23ac54ba278c9270e4aeca, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
@@ -148,7 +242,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 76ce63b908338a84c8a3aa071b90c46b, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &7858675027809163229
|
||||
--- !u!1 &7733588305641661658
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
@@ -156,23 +250,23 @@ GameObject:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4503161163256181978}
|
||||
- component: {fileID: 6785248735263285921}
|
||||
- component: {fileID: 9134740411020661799}
|
||||
- component: {fileID: 6561343147245452701}
|
||||
- component: {fileID: 5147382523768653089}
|
||||
- component: {fileID: 828498842158973289}
|
||||
m_Layer: 5
|
||||
m_Name: Text (TMP)
|
||||
m_Name: beingSelected
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
--- !u!224 &4503161163256181978
|
||||
m_IsActive: 1
|
||||
--- !u!224 &6561343147245452701
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7858675027809163229}
|
||||
m_GameObject: {fileID: 7733588305641661658}
|
||||
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}
|
||||
@@ -180,29 +274,29 @@ RectTransform:
|
||||
m_Children: []
|
||||
m_Father: {fileID: 2698123542832443311}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
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: 0, y: 0}
|
||||
m_SizeDelta: {x: 176, y: 226}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &6785248735263285921
|
||||
--- !u!222 &5147382523768653089
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7858675027809163229}
|
||||
m_GameObject: {fileID: 7733588305641661658}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &9134740411020661799
|
||||
--- !u!114 &828498842158973289
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7858675027809163229}
|
||||
m_GameObject: {fileID: 7733588305641661658}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
@@ -213,74 +307,13 @@ MonoBehaviour:
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: Button
|
||||
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: 4281479730
|
||||
m_fontColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, 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: 24
|
||||
m_fontSizeBase: 24
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
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_TextWrappingMode: 1
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 1
|
||||
m_ActiveFontFeatures: 00000000
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 1
|
||||
m_EmojiFallbackSupport: 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: 0, y: 0, z: 0, 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}
|
||||
m_Sprite: {fileID: 3948514008214086792, guid: 227633339a10f764f96050e69078f191, 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
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,35 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class uiui_character_displayPrefab : MonoBehaviour
|
||||
{
|
||||
public Button characterProfileButton;
|
||||
public Image thisCharacterProfile;
|
||||
public Image beingSelected;
|
||||
public Material grayScaleMaterial;
|
||||
[SerializeField] private int thisHeroId;
|
||||
|
||||
public void SetDisplay(Sprite heroSprite, int heroId)
|
||||
{
|
||||
thisHeroId = heroId;
|
||||
|
||||
if (thisCharacterProfile != null)
|
||||
{
|
||||
thisCharacterProfile.sprite = heroSprite;
|
||||
thisCharacterProfile.preserveAspect = true;
|
||||
thisCharacterProfile.type = Image.Type.Simple;
|
||||
}
|
||||
|
||||
SetSelected(false, false);
|
||||
}
|
||||
|
||||
public void SetSelected(bool selected, bool animated = true)
|
||||
{
|
||||
if (beingSelected == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
beingSelected.material = selected ? null : grayScaleMaterial;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fa7286e478fe9a94bb137978315eeaad
|
||||
Reference in New Issue
Block a user