fix:1、删除不用的功能资源和代码

This commit is contained in:
2026-06-24 14:26:29 +08:00
parent 65a797d384
commit 7846543d1b
127 changed files with 195 additions and 45578 deletions
+2
View File
@@ -5,6 +5,8 @@
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ADOTween_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003FUsers_003F97354_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F2348fb5ecc9e4e689f37f7d7fadaea9a27a00_003F66_003F2140a9ad_003FDOTween_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AEditorGUILayout_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003FUsers_003F97354_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F4b8f645257c94d1296f440a10c6f388e961000_003Fa2_003F73a0821f_003FEditorGUILayout_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AInput_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003FUsers_003F97354_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Fe35f1b2769b6499aa0f83a53f65df1367c00_003F58_003F54ee7497_003FInput_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AList_00601_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003FUsers_003F97354_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F1071a2cb0cb3433aae80a793c277a04846ac00_003Fa7_003F12a55d57_003FList_00601_002Ecs_002Fz_003A2_002D1/@EntryIndexedValue">ForceIncluded</s:String>
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AList_00601_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003FUsers_003F97354_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F84fcf9255ea045aab003a751cdb5a2f6573620_003F98_003Fe66e51af_003FList_00601_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AObject_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003FUsers_003F97354_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F37cc348edc804f4cb176b63962c716e7177200_003F25_003Fe0bd2277_003FObject_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AScriptableObject_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003FUsers_003F97354_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F37cc348edc804f4cb176b63962c716e7177200_003F45_003F06fae3db_003FScriptableObject_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AShortcutExtensions_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003FUsers_003F97354_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F2348fb5ecc9e4e689f37f7d7fadaea9a27a00_003F77_003F364dbea6_003FShortcutExtensions_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
@@ -1,24 +0,0 @@
using System.Collections.Generic;
using System.Linq;
using SGModule.ConfigLoader;
namespace IgnoreOPS
{
public class GameConfigModel : ConfigModel<GameConfigModel, GameBoard>
{
public Dictionary<int, List<GameBoard>> game_conf = new Dictionary<int, List<GameBoard>>();
public GameConfigModel(string key) : base(key)
{
}
}
public class GameBoard
{
public int level;
public string board;
public string stacked;
public int item_type;
}
}
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 82b36e3bf10fb56479a37bccbfe52b95
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -1,20 +0,0 @@
using System.Collections.Generic;
using SGModule.ConfigLoader;
namespace IgnoreOPS
{
public class OnlineRewardsModel : ConfigModel<OnlineRewardsModel, OnlineRewards>
{
public OnlineRewardsModel(string key) : base(key)
{
}
}
public class OnlineRewards
{
public int OnlineLimitNum;
public int OnlineCountTime;
public int OnlineAward;
}
}
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: cb0103dccee904bae947c46c5918fc51
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -1,31 +0,0 @@
using System.Collections.Generic;
using SGModule.ConfigLoader;
namespace IgnoreOPS
{
public class RankHourRewardsModel : ConfigModel<RankHourRewardsModel, RankRewards>
{
public RankHourRewardsModel(string key) : base(key)
{
}
}
public class RankDayRewardsModel : ConfigModel<RankDayRewardsModel, RankRewards>
{
public RankDayRewardsModel(string key) : base(key)
{
}
}
public class RankWeekRewardsModel : ConfigModel<RankWeekRewardsModel, RankRewards>
{
public RankWeekRewardsModel(string key) : base(key)
{
}
}
public class RankRewards
{
public int id;
public int rank;
public int award;
}
}
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: acddf7fb7f0c4d043844876d76f23e35
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -76,42 +76,8 @@ namespace IgnoreOPS
public string amount;
}
public class FAQRuleModel : ConfigModel<FAQRuleModel, FAQRule>
{
public FAQRuleModel(string key) : base(key)
{
}
}
public class FAQRule
{
public int id;
public string Rule;
public string Information1;
public string Information2;
public string Information3;
public string Information4;
}
public class FAQRuleModel1 : ConfigModel<FAQRuleModel1, FAQRule>
{
public FAQRuleModel1(string key) : base(key)
{
}
}
public class MessageBoardModel : ConfigModel<MessageBoardModel, MessageBoard>
{
public MessageBoardModel(string key) : base(key)
{
}
}
public class MessageBoardModel1 : ConfigModel<MessageBoardModel1, MessageBoard>
{
public MessageBoardModel1(string key) : base(key)
{
}
}
public class MessageBoard
{
public int id;
@@ -8,7 +8,7 @@ namespace FGUI.tixian
public partial class com_redeem_code : GComponent
{
public GTextField text_title;
public GButton btn_close;
public GButton btn_close1;
public GTextField lab_mn2;
public GTextField lab_ticket;
public GTextField lab_code;
@@ -27,7 +27,7 @@ namespace FGUI.tixian
base.ConstructFromXML(xml);
text_title = (GTextField)GetChildAt(1);
btn_close = (GButton)GetChildAt(2);
btn_close1 = (GButton)GetChildAt(2);
lab_mn2 = (GTextField)GetChildAt(6);
lab_ticket = (GTextField)GetChildAt(14);
lab_code = (GTextField)GetChildAt(16);
-81
View File
@@ -1690,61 +1690,7 @@ namespace ChillConnect
#endif
GameHelper.ShowTips("Copy Succeed");
}
public static void ShowPaidPack()
{
if(!GameHelper.IsGiftSwitch()) return;
if (Random.Range(0, 100) < GetCommonModel().TurnOffPackRate)
{
if (!SaveData.GetSaveObject().is_get_packreward)
{
Debug.Log("kkkkkkkkkkkkkk2222" + GetCommonModel().TurnOffPackRate);
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.PackrewardUI_Open);
}
else
if (!SaveData.GetSaveObject().is_get_ThreeDaysGift)
{
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.ThreeDaysGiftUI_Open);//在每个打开的界面的onclose方法中调用CallShowTurn方法
}
else if (SaveData.GetSaveObject().failed_pack_time > GameHelper.GetNowTime())
{
float progress = showResurgence();
// if (string.IsNullOrWhiteSpace(jsonstr))
// {
// // CallShowTurn();
// // return;
// }
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.ResurgenceUI_Open, progress);
}
else if (!SaveData.GetSaveObject().is_get_battlepass)
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.PassViewUI_Open);
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.PassunlockUI_Open);
}
else if (!SaveData.GetSaveObject().have_slot)
{
if (SaveData.GetSaveObject().addview_off_time > GameHelper.GetNowTime())
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.AddViewoffUI_Open, true);
}
else
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.BuyslotUI_Open, true);
}
}
else
{
CallShowTurn();//调用事件
}
}
else
{
CallShowTurn();//调用事件
}
}
public static void CallShowTurn()
{
ShowTurn += ShowTurnOffReward;
@@ -1754,33 +1700,6 @@ namespace ChillConnect
public static event Action ShowTurn;
private static string jsonstr = "";
static float showResurgence()
{
jsonstr = "";
var json = DataManager.Instance.LoadData(DataKeys.LevelData, string.Empty);
if (!string.IsNullOrEmpty(json))
{
jsonstr = json;
}
if (string.IsNullOrEmpty(jsonstr))
return 0;
List<List<Card_item>> card_item_list = JsonConvert.DeserializeObject<List<List<Card_item>>>(jsonstr);
int surplus_item = 0;
for (int i = 0; i < card_item_list.Count; i++)
{
for (int j = 0; j < card_item_list[i].Count; j++)
{
// if (card_item_list[i][j].sheep_card.IsDestroyed() || card_item_list[i][j].sheep_card == null) continue;
surplus_item++;
}
}
return 1 - (float)surplus_item / (SaveData.GetSaveObject().all_card_numbers * 3);
}
public static void ShowTurnOffReward()
{
Debug.Log("chansghidakai");
@@ -3,7 +3,7 @@ guid: a7c353a09ebe9804d9b675d0573fc306
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
@@ -80,19 +80,6 @@ TextureImporter:
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
@@ -120,7 +107,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -133,20 +120,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: VisionOS
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: tvOS
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -3,7 +3,7 @@ guid: d38168e46ed53da4fb50a6217345bcb7
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
@@ -80,19 +80,6 @@ TextureImporter:
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
@@ -120,7 +107,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -133,20 +120,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: VisionOS
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: tvOS
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
Binary file not shown.

Before

Width:  |  Height:  |  Size: 305 KiB

@@ -1,179 +0,0 @@
fileFormatVersion: 2
guid: dc6322dcce5164a4a851b78acc18275b
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: iPhone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: VisionOS
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: tvOS
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 2f3adfe9ca1950841858cf6b628a3480
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -3,7 +3,7 @@ guid: d385698d2134a0d4e959ba7cf94ec0e9
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
@@ -80,19 +80,6 @@ TextureImporter:
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
@@ -120,7 +107,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -133,20 +120,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: VisionOS
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: tvOS
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
Binary file not shown.

Before

Width:  |  Height:  |  Size: 307 KiB

@@ -1,179 +0,0 @@
fileFormatVersion: 2
guid: 5ee55572fd3c5dc4db5bc242ebf87041
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: iPhone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: VisionOS
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: tvOS
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

@@ -1,140 +0,0 @@
fileFormatVersion: 2
guid: 88a876efb1c5b1642a2a40e151984e72
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: iPhone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 72cf1152aacf08242b34dc2e0d45312a
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -3,7 +3,7 @@ guid: 5f915df09986df64199d481fabde5685
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
@@ -80,19 +80,6 @@ TextureImporter:
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
@@ -120,7 +107,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -133,20 +120,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: VisionOS
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: tvOS
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -3,7 +3,7 @@ guid: 11c2796264f3fe34fbb95be46ef4cd16
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
@@ -80,19 +80,6 @@ TextureImporter:
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
@@ -120,7 +107,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -133,20 +120,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: VisionOS
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: tvOS
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -3,7 +3,7 @@ guid: be6697811eadde24fb22b59eb76ba263
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
@@ -80,19 +80,6 @@ TextureImporter:
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
@@ -120,7 +107,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -133,20 +120,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: VisionOS
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: tvOS
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -3,7 +3,7 @@ guid: 72c33a6978ada31408f378898db98c34
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
@@ -80,19 +80,6 @@ TextureImporter:
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
@@ -120,7 +107,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -133,20 +120,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: VisionOS
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: tvOS
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -3,7 +3,7 @@ guid: 826a9daf214b71d418d26c52e3247bbd
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
@@ -80,19 +80,6 @@ TextureImporter:
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
@@ -120,7 +107,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -133,20 +120,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: VisionOS
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: tvOS
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -3,7 +3,7 @@ guid: 121c1f2d570539a4683b3a31a1e6f9bd
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
@@ -107,7 +107,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -120,7 +120,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -106,6 +106,32 @@ TextureImporter:
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
@@ -106,6 +106,32 @@ TextureImporter:
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
@@ -3,7 +3,7 @@ guid: 3652b86405d05d74597d2b70b64d524b
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
@@ -80,19 +80,6 @@ TextureImporter:
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
@@ -120,7 +107,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -133,20 +120,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: VisionOS
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: tvOS
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -3,7 +3,7 @@ guid: d9a53d4bb363a00408a3fe5ec8eacd0f
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
@@ -80,19 +80,6 @@ TextureImporter:
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
@@ -120,7 +107,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -133,20 +120,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: VisionOS
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: tvOS
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -3,7 +3,7 @@ guid: 416102a616e75b443866abb59e3e49dc
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
@@ -107,7 +107,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -120,7 +120,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
Binary file not shown.

Before

Width:  |  Height:  |  Size: 288 KiB

@@ -1,179 +0,0 @@
fileFormatVersion: 2
guid: 2041ce0eb838fe04c9c4373b073da986
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: iPhone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: VisionOS
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: tvOS
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 48ce74a42e6223d4181889f84726d5c2
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -3,7 +3,7 @@ guid: f69ed2a73781df042bffaa5d7a6616af
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
@@ -80,19 +80,6 @@ TextureImporter:
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
@@ -120,7 +107,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -133,20 +120,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: VisionOS
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: tvOS
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -3,7 +3,7 @@ guid: 9bc6f904dfea54551abe675315a22d4b
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
@@ -80,19 +80,6 @@ TextureImporter:
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
@@ -120,7 +107,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -133,7 +120,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -3,7 +3,7 @@ guid: 5c52b62d36f394b0e8d20eea94bfe5b1
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
@@ -80,19 +80,6 @@ TextureImporter:
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
@@ -120,7 +107,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -133,7 +120,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -106,6 +106,32 @@ TextureImporter:
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
@@ -3,7 +3,7 @@ guid: 7e625a474873642c19b4c54dc87ace76
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
@@ -80,19 +80,6 @@ TextureImporter:
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
@@ -120,7 +107,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -133,7 +120,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -106,6 +106,32 @@ TextureImporter:
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
@@ -3,7 +3,7 @@ guid: ca2ad4883de184e429cb6353cb7ad3be
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
@@ -80,19 +80,6 @@ TextureImporter:
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
@@ -120,7 +107,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -133,7 +120,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -3,7 +3,7 @@ guid: a61302237ef71504aad61989cf4bcbc1
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
@@ -107,7 +107,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -120,7 +120,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -3,7 +3,7 @@ guid: 7dc614fc03fbf8941a1fed6c4f3162c9
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
@@ -107,7 +107,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -120,7 +120,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
Binary file not shown.

Before

Width:  |  Height:  |  Size: 802 KiB

@@ -1,153 +0,0 @@
fileFormatVersion: 2
guid: 50ff646bf12784943ba523c2c848c5d8
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: iPhone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

@@ -1,166 +0,0 @@
fileFormatVersion: 2
guid: 519af4946bdfa4e74a545065ffdbfad8
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: iPhone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 5e658d81ca71f1f4ab50319f29aa4e6a
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -3,7 +3,7 @@ guid: c403940dc0e1fe04d9ad9407d0270ed7
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
@@ -80,19 +80,6 @@ TextureImporter:
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
@@ -120,7 +107,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -133,20 +120,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: VisionOS
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: tvOS
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -3,7 +3,7 @@ guid: 5aab7bbde6f81b044a99101130466155
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
@@ -107,7 +107,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -120,7 +120,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -3,7 +3,7 @@ guid: 03c3767a4cf28a34f90110db4d19aa1e
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
@@ -107,7 +107,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -120,7 +120,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -3,7 +3,7 @@ guid: cb0f933baada5401db98634511b3e9d7
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
@@ -80,19 +80,6 @@ TextureImporter:
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
@@ -120,7 +107,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
@@ -133,7 +120,7 @@ TextureImporter:
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
-278
View File
@@ -1,278 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using IgnoreOPS;
using Spine.Unity;
using UnityEngine;
using ChillConnect;
public class CreatAnimalCard : MonoBehaviour
{
private GameObject card_item;
public static CreatAnimalCard instance;
private List<Sprite> img_list;
public Camera orthoCamera; // 这个变量应该被设置为您想要调整大小的正交相机
private void Awake()
{
instance = this;
card_item = Resources.Load<GameObject>("card/card_item/card_");
img_list = new List<Sprite>();
// img_list = Resources.LoadAll<Sprite>("card/card_sprite").ToList();
// img_list.Sort((x, y) => String.Compare(x.name, y.name));
for (int i = 0; i < 16; i++)
{
img_list.Add(Resources.Load<Sprite>("card/card_sprite/" + i));
}
orthoCamera = GameObject.Find("GameCamera").GetComponent<Camera>();
float size = (float)Math.Round(28.125f / ((float)Screen.width / Screen.height), 4);
string type = SystemInfo.deviceModel.ToLower().Trim();
// Debug.Log($"type==========={type}");
if (type.Substring(0, 3) == "ipa")
{//iPad机型
size = 49.9f;
}
orthoCamera.orthographicSize = size;
}
public void SetCameraVisible(bool visible)
{
orthoCamera.SetActive(visible);
GameHelper.ShowSheepPlayUI(visible);
}
// Start is called before the first frame update
public List<List<Card_item>> card_item_list = new List<List<Card_item>>();
public List<List<Card_item>> CreatCardNew(int all_card_numbers, int card_type_max, int card_layer, int extra_max, List<List<Vector2>> map_list, List<Vector2> left_extra_list,
List<Vector2> right_extra_list)
{
//all_card_numbers *= 3;
int money_rate = ConfigSystem.GetConfig<CommonModel>().rewardrate;
List<int> type_list = new List<int>();
List<int> this_timetype_list = new List<int>();
// Debug.Log(card_layer);
card_item_list.Clear();
// ---------- 新增:先从0~15中挑选 card_type_max 个不同的类型 ----------
List<int> allTypes = Enumerable.Range(0, 15).ToList(); // [0,1,2,...,15]
List<int> chosenTypes = new List<int>();
for (int i = 0; i < card_type_max; i++)
{
int idx = UnityEngine.Random.Range(0, allTypes.Count);
chosenTypes.Add(allTypes[idx]);
allTypes.RemoveAt(idx); // 确保不重复
}
// ---------------------------------------------------------------
// 打印选出来的类型池
Debug.Log($"[CreatCardNew] 随机选出的 {card_type_max} 个类型: {string.Join(",", chosenTypes)}");
for (int i = 0; i < all_card_numbers; i++)
{
int type = 0;
var randomNum = UnityEngine.Random.Range(0, 100);
// Debug.Log($"[creat] money_rate------------ {randomNum}==={money_rate}");
if (GameHelper.IsGiftSwitch() && randomNum < money_rate)
{
type = 15; // 金币
}
else
{
// 在挑选好的类型池里再随机
type = chosenTypes[UnityEngine.Random.Range(0, chosenTypes.Count)];
}
// if (GameHelper.IsGiftSwitch() && type == 15)
// {
// type = UnityEngine.Random.Range(0, card_type_max - 1);
// }
#if UNITY_EDITOR
// type = 1;
#endif
type_list.Add(type);
type_list.Add(type);
type_list.Add(type);
if (!this_timetype_list.Contains(type)) this_timetype_list.Add(type);
}
SaveData.GetSaveObject().this_time_cardtype = this_timetype_list.Count;
for (int i = 0; i < card_layer; i++)
{
card_item_list.Add(new List<Card_item>());
}
if (left_extra_list.Count > 0 || right_extra_list.Count > 0)
{
for (int i = 0; i < left_extra_list.Count; i++)
{
Card_item _tempObject = new()
{
pos_x = left_extra_list[i].x,
pos_y = left_extra_list[i].y,
_layer = i
};
card_item_list[i].Add(_tempObject);
}
for (int i = 0; i < right_extra_list.Count; i++)
{
Card_item _tempObject1 = new()
{
pos_x = right_extra_list[i].x,
pos_y = right_extra_list[i].y,
_layer = i
};
card_item_list[i].Add(_tempObject1);
}
}
var nums = 0;
for (int i = 0; i < map_list.Count; i++)
{
nums += map_list[i].Count;
}
for (int i = 0; i < nums; i++)
{
Card_item _tempObject = new();
int layer = getMaplayer(map_list);//确定层数
int pos = UnityEngine.Random.Range(0, map_list[layer].Count);
_tempObject.pos_x = map_list[layer][pos].x;
_tempObject.pos_y = map_list[layer][pos].y;
_tempObject._layer = layer;
card_item_list[layer].Add(_tempObject);
map_list[layer].RemoveAt(pos);
}
for (int i = 0; i < card_item_list.Count; i++)
{
card_item_list[i].Sort((x, y) => y.pos_y.CompareTo(x.pos_y));
}
int index = 0;
for (int i = 0; i < card_item_list.Count; i++)
{
float z_offset = 0;//用来微调每层之间的z值,让下层盖住上层
float last_posy = 0;
for (int j = 0; j < card_item_list[i].Count; j++)
{
if (last_posy != card_item_list[i][j].pos_y)
{
z_offset += 0.05f;
last_posy = card_item_list[i][j].pos_y;
}
GameObject temp = Instantiate(card_item, new Vector3(card_item_list[i][j].pos_x, card_item_list[i][j].pos_y, 400 - card_item_list[i][j]._layer - z_offset), Quaternion.identity, gameObject.transform);
index = UnityEngine.Random.Range(0, type_list.Count);
temp.GetComponent<SpriteRenderer>().sprite = img_list[type_list[index]];
card_item_list[i][j].sheep_card = temp;
card_item_list[i][j].card_type = type_list[index];
temp.gameObject.name = i + "-" + j;
type_list.RemoveAt(index);
}
}
return card_item_list;
}
public void creatSaveCard(List<List<Card_item>> card_item_list)
{
this.card_item_list = card_item_list;
for (int i = 0; i < card_item_list.Count; i++)
{
for (int j = 0; j < card_item_list[i].Count; j++)
{
GameObject temp;
// if (card_item_list[i][j].is_out)
// {
// temp = Instantiate(card_item, new Vector3(card_item_list[i][j].pos_x, card_item_list[i][j].pos_y, 400 - card_item_list[i][j].out_layer), Quaternion.identity, gameObject.transform);
// }
// else
temp = Instantiate(card_item, new Vector3(card_item_list[i][j].pos_x, card_item_list[i][j].pos_y, 400 - card_item_list[i][j]._layer), Quaternion.identity, gameObject.transform);
temp.GetComponent<SpriteRenderer>().sprite = img_list[card_item_list[i][j].card_type];
card_item_list[i][j].sheep_card = temp;
if (card_item_list[i][j].in_slot || card_item_list[i][j].is_out) temp.transform.localScale = new Vector3(4.628f, 4.628f, 1);
temp.gameObject.name = i + "-" + j;
}
}
}
private GameObject Popup;
void Update()
{
if (Input.GetMouseButtonDown(0))
{
if (Popup == null) Popup = GameObject.Find("Popup");
if (Popup.transform.childCount != 0) return;
Ray ray = orthoCamera.ScreenPointToRay(Input.mousePosition);
RaycastHit hit;
int layerMask = 1 << 6; // 只与第8层的碰撞器碰撞
// 如果射线与layerMask指定层的碰撞器发生碰撞
if (Physics.Raycast(ray, out hit, Mathf.Infinity, layerMask))
{
// Debug.Log("Hit " + hit.collider.gameObject.name);
GameDispatcher.Instance.Dispatch(GameMsg.card_click, hit.collider.gameObject.name);
// 在此处添加点击物体后的逻辑
}
else
{
// Debug.Log("No hit");
}
}
}
private GameObject disappear01;
private GameObject disappear02;
public void creatSpine(int type, Vector3 vec3)
{
if (disappear01 == null) disappear01 = Resources.Load<GameObject>("card/bg_img/fx_disaappear_1");
if (disappear02 == null) disappear02 = Resources.Load<GameObject>("card/bg_img/fx_disaappear_2");
if (type == 1)
{
SkeletonAnimation temp = Instantiate(disappear01, new Vector3(vec3.x, vec3.y, 110), Quaternion.identity, gameObject.transform).GetComponent<SkeletonAnimation>();
temp.AnimationState.SetAnimation(0, "disappear01", true);
temp.AnimationState.Complete += (trackEntry) =>
{
Destroy(temp.gameObject);
};
}
if (type == 2)
{
SkeletonAnimation temp = Instantiate(disappear02, new Vector3(vec3.x, vec3.y, 110), Quaternion.identity, gameObject.transform).GetComponent<SkeletonAnimation>();
temp.AnimationState.SetAnimation(0, "disappear02", true);
temp.AnimationState.Complete += (trackEntry) =>
{
Destroy(temp.gameObject);
};
}
// temp.GetComponent<SpriteRenderer>().sprite = img_list[card_item_list[i][j].card_type];
}
int getMaplayer(List<List<Vector2>> map_list)
{
int layer = UnityEngine.Random.Range(0, map_list.Count);//确定层数
if (map_list[layer].Count == 0)
{
layer = getMaplayer(map_list);
}
return layer;
}
}
-11
View File
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 9fb9475b4182b354b84f97ae3ed0a002
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -17,7 +17,6 @@ namespace ChillConnect
moduleManager.AddModel(ModelConst.OpenBgModel, new OpenBgModel());
moduleManager.AddModel(ModelConst.PrivacyModel, new PrivacyModel());
moduleManager.AddModel(ModelConst.RewardModel, new RewardModel());
moduleManager.AddModel(ModelConst.RainPlayModel, new RainPlayModel());
moduleManager.AddModel(ModelConst.ChoosePropModel, new ChoosePropModel());
moduleManager.AddModel(ModelConst.BuyPropModel, new BuyPropModel());
moduleManager.AddModel(ModelConst.GameResultModel, new GameResultModel());
@@ -25,7 +24,6 @@ namespace ChillConnect
moduleManager.AddModel(ModelConst.OpenGameModel, new OpenGameModel());
moduleManager.AddModel(ModelConst.RewardboxModel, new RewardboxModel());
moduleManager.AddModel(ModelConst.PayloadingModel, new PayloadingModel());
moduleManager.AddModel(ModelConst.HallModel, new HallModel());
moduleManager.AddModel(ModelConst.FXWndModel, new FXWndModel());
moduleManager.AddModel(ModelConst.WheelViewModel, new WheelViewModel());
moduleManager.AddModel(ModelConst.BuygoldModel, new BuygoldModel());
@@ -45,11 +43,7 @@ namespace ChillConnect
moduleManager.AddModel(ModelConst.RecordViewModel, new RecordViewModel());
moduleManager.AddModel(ModelConst.RewardMulNewModel, new RewardMulNewModel());
moduleManager.AddModel(ModelConst.AdcomingModel, new AdcomingModel());
moduleManager.AddModel(ModelConst.FAQModel, new FAQModel());
moduleManager.AddModel(ModelConst.AddViewoffModel, new AddViewoffModel());
moduleManager.AddModel(ModelConst.RankModel, new RankModel());
moduleManager.AddModel(ModelConst.RankRewardModel, new RankRewardModel());
moduleManager.AddModel(ModelConst.RankRuleModel, new RankRuleModel());
moduleManager.AddModel(ModelConst.PackrewardModel, new PackrewardModel());
moduleManager.AddModel(ModelConst.GoldRewardModel, new GoldRewardModel());
moduleManager.AddModel(ModelConst.AddviewnewModel, new AddviewnewModel());
@@ -78,7 +72,6 @@ namespace ChillConnect
moduleManager.AddUICtrl(UICtrlConst.OpenBgUICtrl, new OpenBgUICtrl());
moduleManager.AddUICtrl(UICtrlConst.PrivacyUICtrl, new PrivacyUICtrl());
moduleManager.AddUICtrl(UICtrlConst.RewardUICtrl, new RewardUICtrl());
moduleManager.AddUICtrl(UICtrlConst.RainPlayUICtrl, new RainPlayUICtrl());
moduleManager.AddUICtrl(UICtrlConst.ChoosePropUICtrl, new ChoosePropUICtrl());
moduleManager.AddUICtrl(UICtrlConst.BuyPropUICtrl, new BuyPropUICtrl());
moduleManager.AddUICtrl(UICtrlConst.GameResultUICtrl, new GameResultUICtrl());
@@ -86,7 +79,6 @@ namespace ChillConnect
moduleManager.AddUICtrl(UICtrlConst.OpenGameUICtrl, new OpenGameUICtrl());
moduleManager.AddUICtrl(UICtrlConst.RewardboxUICtrl, new RewardboxUICtrl());
moduleManager.AddUICtrl(UICtrlConst.PayloadingUICtrl, new PayloadingUICtrl());
moduleManager.AddUICtrl(UICtrlConst.HallUICtrl, new HallUICtrl());
moduleManager.AddUICtrl(UICtrlConst.FXWndUICtrl, new FXWndUICtrl());
moduleManager.AddUICtrl(UICtrlConst.WheelViewUICtrl, new WheelViewUICtrl());
moduleManager.AddUICtrl(UICtrlConst.BuygoldUICtrl, new BuygoldUICtrl());
@@ -106,11 +98,7 @@ namespace ChillConnect
moduleManager.AddUICtrl(UICtrlConst.BroadcastUICtrl, new BroadcastUICtrl());
moduleManager.AddUICtrl(UICtrlConst.RecordViewUICtrl, new RecordViewUICtrl());
moduleManager.AddUICtrl(UICtrlConst.AdcomingUICtrl, new AdcomingUICtrl());
moduleManager.AddUICtrl(UICtrlConst.FAQUICtrl, new FAQUICtrl());
moduleManager.AddUICtrl(UICtrlConst.AddViewoffUICtrl, new AddViewoffUICtrl());
moduleManager.AddUICtrl(UICtrlConst.RankUICtrl, new RankUICtrl());
moduleManager.AddUICtrl(UICtrlConst.RankRewardUICtrl, new RankRewardUICtrl());
moduleManager.AddUICtrl(UICtrlConst.RankRuleUICtrl, new RankRuleUICtrl());
moduleManager.AddUICtrl(UICtrlConst.PackrewardUICtrl, new PackrewardUICtrl());
moduleManager.AddUICtrl(UICtrlConst.GoldRewardUICtrl, new GoldRewardUICtrl());
moduleManager.AddUICtrl(UICtrlConst.AddviewnewUICtrl, new AddviewnewUICtrl());
@@ -142,7 +130,6 @@ namespace ChillConnect
moduleManager.AddCtrl(CtrlConst.PrivacyCtrl, new PrivacyCtrl());
moduleManager.AddCtrl(CtrlConst.RewardCtrl, new RewardCtrl());
moduleManager.AddCtrl(CtrlConst.PreferencesDataReadyCtrl, new PreferencesDataReadyCtrl());
moduleManager.AddCtrl(CtrlConst.RainPlayCtrl, new RainPlayCtrl());
moduleManager.AddCtrl(CtrlConst.ChoosePropCtrl, new ChoosePropCtrl());
moduleManager.AddCtrl(CtrlConst.BuyPropCtrl, new BuyPropCtrl());
moduleManager.AddCtrl(CtrlConst.GameResultCtrl, new GameResultCtrl());
@@ -150,7 +137,6 @@ namespace ChillConnect
moduleManager.AddCtrl(CtrlConst.OpenGameCtrl, new OpenGameCtrl());
moduleManager.AddCtrl(CtrlConst.RewardboxCtrl, new RewardboxCtrl());
moduleManager.AddCtrl(CtrlConst.PayloadingCtrl, new PayloadingCtrl());
moduleManager.AddCtrl(CtrlConst.HallCtrl, new HallCtrl());
moduleManager.AddCtrl(CtrlConst.FXWndCtrl, new FXWndCtrl());
moduleManager.AddCtrl(CtrlConst.WheelViewCtrl, new WheelViewCtrl());
moduleManager.AddCtrl(CtrlConst.BuygoldCtrl, new BuygoldCtrl());
@@ -170,11 +156,7 @@ namespace ChillConnect
moduleManager.AddCtrl(CtrlConst.BroadcastCtrl, new BroadcastCtrl());
moduleManager.AddCtrl(CtrlConst.RecordViewCtrl, new RecordViewCtrl());
moduleManager.AddCtrl(CtrlConst.AdcomingCtrl, new AdcomingCtrl());
moduleManager.AddCtrl(CtrlConst.FAQCtrl, new FAQCtrl());
moduleManager.AddCtrl(CtrlConst.AddViewoffCtrl, new AddViewoffCtrl());
moduleManager.AddCtrl(CtrlConst.RankCtrl, new RankCtrl());
moduleManager.AddCtrl(CtrlConst.RankRewardCtrl, new RankRewardCtrl());
moduleManager.AddCtrl(CtrlConst.RankRuleCtrl, new RankRuleCtrl());
moduleManager.AddCtrl(CtrlConst.PackrewardCtrl, new PackrewardCtrl());
moduleManager.AddCtrl(CtrlConst.GoldRewardCtrl, new GoldRewardCtrl());
moduleManager.AddCtrl(CtrlConst.AddviewnewCtrl, new AddviewnewCtrl());
@@ -205,7 +187,6 @@ namespace ChillConnect
moduleManager.AddUIType(UIConst.OpenBgUI, typeof(OpenBgUI));
moduleManager.AddUIType(UIConst.PrivacyUI, typeof(PrivacyUI));
moduleManager.AddUIType(UIConst.RewardUI, typeof(RewardUI));
moduleManager.AddUIType(UIConst.RainPlayUI, typeof(RainPlayUI));
moduleManager.AddUIType(UIConst.ChoosePropUI, typeof(ChoosePropUI));
moduleManager.AddUIType(UIConst.BuyPropUI, typeof(BuyPropUI));
moduleManager.AddUIType(UIConst.GameResultUI, typeof(GameResultUI));
@@ -213,7 +194,6 @@ namespace ChillConnect
moduleManager.AddUIType(UIConst.OpenGameUI, typeof(OpenGameUI));
moduleManager.AddUIType(UIConst.RewardboxUI, typeof(RewardboxUI));
moduleManager.AddUIType(UIConst.PayloadingUI, typeof(PayloadingUI));
moduleManager.AddUIType(UIConst.HallUI, typeof(HallUI));
moduleManager.AddUIType(UIConst.WheelViewUI, typeof(WheelViewUI));
moduleManager.AddUIType(UIConst.BuygoldUI, typeof(BuygoldUI));
moduleManager.AddUIType(UIConst.GameMenuUI, typeof(GameMenuUI));
@@ -232,11 +212,7 @@ namespace ChillConnect
moduleManager.AddUIType(UIConst.BroadcastUI, typeof(BroadcastUI));
moduleManager.AddUIType(UIConst.RecordViewUI, typeof(RecordViewUI));
moduleManager.AddUIType(UIConst.AdcomingUI, typeof(AdcomingUI));
moduleManager.AddUIType(UIConst.FAQUI, typeof(FAQUI));
moduleManager.AddUIType(UIConst.AddViewoffUI, typeof(AddViewoffUI));
moduleManager.AddUIType(UIConst.RankUI, typeof(RankUI));
moduleManager.AddUIType(UIConst.RankRewardUI, typeof(RankRewardUI));
moduleManager.AddUIType(UIConst.RankRuleUI, typeof(RankRuleUI));
moduleManager.AddUIType(UIConst.PackrewardUI, typeof(PackrewardUI));
moduleManager.AddUIType(UIConst.GoldRewardUI, typeof(GoldRewardUI));
moduleManager.AddUIType(UIConst.AddviewnewUI, typeof(AddviewnewUI));
@@ -2123,4 +2123,15 @@ namespace ChillConnect
public List<LevelConfig> levels;
}
#endregion
public class SuccessData
{
public bool IsWin;
public float cash_number;
public bool IsLevelSuccess;
public bool IsH5Reward;
public int rate;
public int[] boost_array;
}
}
-8
View File
@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 2a76f72334f97ad4983e911484830546
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
-25
View File
@@ -1,25 +0,0 @@
namespace ChillConnect
{
public class FAQCtrl : BaseCtrl
{
public static FAQCtrl Instance { get; private set; }
private FAQModel model;
#region
protected override void OnInit()
{
Instance = this;
//model = ModuleManager.Instance..GetModel(ModelConst.FAQModel) as FAQModel;
}
protected override void OnDispose()
{
Instance = null;
}
#endregion
}
}
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 141317c3032f4463da09be3c37e26ba8
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
-20
View File
@@ -1,20 +0,0 @@
namespace ChillConnect
{
public class FAQModel : BaseModel
{
#region
protected override void OnInit()
{
}
protected override void OnDispose()
{
}
#endregion
}
}
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 83f9eb69747b240dcb54855ff322ac86
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
-241
View File
@@ -1,241 +0,0 @@
using System.Collections.Generic;
using FairyGUI;
using FGUI.Lobby_03;
using IgnoreOPS;
using Newtonsoft.Json;
using UnityEngine;
namespace ChillConnect
{
public class FAQUI : BaseUI
{
private FAQUICtrl ctrl;
private FAQModel model;
private com_faq ui;
public FAQUI(FAQUICtrl ctrl) : base(ctrl)
{
uiName = UIConst.FAQUI;
this.ctrl = ctrl;
}
protected override void SetUIInfo(UIInfo uiInfo)
{
uiInfo.packageName = "Lobby_03";
uiInfo.assetName = "com_faq";
uiInfo.layerType = UILayerType.Popup;
uiInfo.isNeedOpenAnim = false;
uiInfo.isNeedCloseAnim = false;
uiInfo.isNeedUIMask = true;
}
#region
protected override void OnInit()
{
//model = ModuleManager.Instance.GetModel(ModelConst.FAQModel) as FAQModel;
}
protected override void OnClose()
{
}
protected override void OnBind()
{
ui = baseUI as com_faq;
}
protected override void OnOpenBefore(object args)
{
if (GameHelper.isRDExchangeMode())
{
rule_list = ConfigSystem.GetConfig<FAQRuleModel1>().DataList;
message_list = ConfigSystem.GetConfig<MessageBoardModel>().DataList;
}
else
{
rule_list = ConfigSystem.GetConfig<FAQRuleModel>().DataList;
message_list = ConfigSystem.GetConfig<MessageBoardModel>().DataList;
}
InitView();
}
private List<FAQRule> rule_list;
private List<MessageBoard> message_list;
protected override void OnOpen(object args)
{
}
protected override void OnHide()
{
}
protected override void OnDisplay(object args)
{
}
#endregion
#region
protected override void AddListener()
{
GameDispatcher.Instance.AddListener(GameMsg.faq_refresh, refreshList);
}
protected override void RemoveListener()
{
GameDispatcher.Instance.RemoveListener(GameMsg.faq_refresh, refreshList);
}
#endregion
void refreshList(object a)
{
com_msg com_msg = (com_msg)UIPackage.CreateObject("Lobby_03", "com_msg");
com_msg.text_msg.text = list_user_arr[list_user_arr.Count - 1] + ":" + list_content_arr[list_content_arr.Count - 1];
ui.list_msg.AddChild(com_msg);
ui.list_msg.scrollPane.ScrollDown(500, false);
}
//初始化页面逻辑
private void InitView()
{
ui.btn_close.SetClick(CtrlCloseUI);
for (int i = 0; i < rule_list.Count; i++)
{
com_question question = (com_question)UIPackage.CreateObject("Lobby_03", "com_question");
question.text_question.text = (i + 1) + "." + rule_list[i].Rule;
if (question.text_question.width > 730)
{
question.text_question.autoSize = AutoSizeType.Shrink;
question.text_question.width = 730;
}
ui.list_faq.AddChild(question);
for (int j = 0; j < 4; j++)
{
if (j == 0)
{
if (!string.IsNullOrEmpty(rule_list[i].Information1))
{
com_answer anster = (com_answer)UIPackage.CreateObject("Lobby_03", "com_answer");
anster.text_answer.text = rule_list[i].Information1;
ui.list_faq.AddChild(anster);
}
}
else if (j == 1)
{
if (!string.IsNullOrEmpty(rule_list[i].Information2))
{
com_answer anster = (com_answer)UIPackage.CreateObject("Lobby_03", "com_answer");
anster.text_answer.text = rule_list[i].Information2;
ui.list_faq.AddChild(anster);
}
}
else if (j == 2)
{
if (!string.IsNullOrEmpty(rule_list[i].Information3))
{
com_answer anster = (com_answer)UIPackage.CreateObject("Lobby_03", "com_answer");
anster.text_answer.text = rule_list[i].Information3;
ui.list_faq.AddChild(anster);
}
}
else if (j == 3)
{
if (!string.IsNullOrEmpty(rule_list[i].Information4))
{
com_answer anster = (com_answer)UIPackage.CreateObject("Lobby_03", "com_answer");
anster.text_answer.text = rule_list[i].Information4;
ui.list_faq.AddChild(anster);
}
}
}
}
if (user_arr == null) //第一次显示
{
user_arr = message_list[0].user_name.Split(",");
int user_index = PlayerPrefs.GetInt("user_index", 0);
if (user_index + 10 >= user_arr.Length) user_index = 0;
content_arr = message_list[0].message.Split(",");
int faq_index = PlayerPrefs.GetInt("faq_index", 0);
if (faq_index + 10 >= content_arr.Length) faq_index = 0;
for (int i = user_index; i < user_index + 10; i++)
{
list_user_arr.Add(user_arr[i]);
}
for (int i = faq_index; i < faq_index + 10; i++)
{
list_content_arr.Add(content_arr[i]);
}
if (PlayerPrefs.GetInt("user_FAQindex", 0) < 10)
{
if (!string.IsNullOrEmpty(PlayerPrefs.GetString("user_FAQcontent", "")))
{
list_user_arr.Insert(10 - PlayerPrefs.GetInt("user_FAQindex", 0), DataMgr.PlayerName.Value);
list_content_arr.Insert(10 - PlayerPrefs.GetInt("user_FAQindex", 0), PlayerPrefs.GetString("user_FAQcontent", ""));
}
}
user_index += 10;
faq_index += 10;
PlayerPrefs.SetInt("user_index", user_index);
PlayerPrefs.SetInt("faq_index", faq_index);
}
for (int i = 0; i < list_user_arr.Count; i++)
{
com_msg com_msg = (com_msg)UIPackage.CreateObject("Lobby_03", "com_msg");
com_msg.text_msg.text = list_user_arr[i] + ":" + list_content_arr[i];
ui.list_msg.AddChild(com_msg);
}
ui.btn_send.SetClick(() =>
{
if (string.IsNullOrEmpty(ui.input_msg.text))
{
GameHelper.ShowTips("Please enter your message!");
return;
}
Debug.Log(ui.input_msg.text);
com_msg com_msg = (com_msg)UIPackage.CreateObject("Lobby_03", "com_msg");
com_msg.text_msg.text = DataMgr.PlayerName.Value + ":" + ui.input_msg.text;
list_user_arr.Add(DataMgr.PlayerName.Value);
list_content_arr.Add(ui.input_msg.text);
PlayerPrefs.SetInt("faq_time", (int)GameHelper.GetNowTime());
PlayerPrefs.SetInt("user_FAQindex", 0);
PlayerPrefs.SetString("user_FAQcontent", ui.input_msg.text);
ui.input_msg.text = "";
ui.input_msg.promptText = "[color=#999999][size=40]Can only send once every hour[/size][/color]";
ui.input_msg.touchable = false;
ui.btn_send.SetClick(() => { });
ui.list_msg.AddChild(com_msg);
ui.list_msg.scrollPane.ScrollDown(500, false);
ui.btn_send.grayed = true;
ui.input_bg.grayed = true;
});
ui.list_msg.scrollPane.ScrollDown(1000, false);
if (PlayerPrefs.GetInt("faq_time", 0) + 3600 > GameHelper.GetNowTime())
{
ui.input_msg.promptText = "[color=#999999][size=40]Can only send once every hour[/size][/color]";
ui.input_msg.touchable = false;
ui.btn_send.SetClick(() => { });
ui.btn_send.grayed = true;
ui.input_bg.grayed = true;
}
ui.btn_contactus.SetClick(() => { GameHelper.OpenEmail(); });
}
public static string[] user_arr;
public static string[] content_arr;
public static List<string> list_user_arr = new List<string>();
public static List<string> list_content_arr = new List<string>();
}
}
-11
View File
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 5a9bee451b15a47eaaa4a44e93ccba93
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
-156
View File
@@ -1,156 +0,0 @@
using System.Collections.Generic;
using IgnoreOPS;
using UnityEngine;
namespace ChillConnect
{
public class FAQUICtrl : BaseUICtrl
{
private FAQUI ui;
private FAQModel model;
private uint openUIMsg = UICtrlMsg.FAQUI_Open;
private uint closeUIMsg = UICtrlMsg.FAQUI_Close;
#region
protected override void OnInit()
{
//model = ModuleManager.Instance.GetModel(ModelConst.FAQModel) as FAQModel;
}
protected override void OnDispose()
{
}
public override void OpenUI(object args = null)
{
if (ui == null)
{
ui = new FAQUI(this);
ui.Open(args);
}
}
public override void CloseUI(object args = null)
{
if (ui != null && !ui.isClose)
{
ui.Close();
}
ui = null;
}
#endregion
#region
public override uint GetOpenUIMsg(string uiName)
{
return openUIMsg;
}
public override uint GetCloseUIMsg(string uiName)
{
return closeUIMsg;
}
protected override void AddListener()
{
uiCtrlDispatcher.AddListener(openUIMsg, OpenUI);
uiCtrlDispatcher.AddListener(closeUIMsg, CloseUI);
HallManager.Instance.UpdateSecondEvent += timeEvent;
}
protected override void RemoveListener()
{
uiCtrlDispatcher.RemoveListener(openUIMsg, OpenUI);
uiCtrlDispatcher.RemoveListener(closeUIMsg, CloseUI);
}
protected override void AddServerListener()
{
}
protected override void RemoveServerListener()
{
}
private int time;
private int refresh_time=5;
void timeEvent()
{
time++;
// Debug.Log((int)GameHelper.GetNowTime());
if (FAQUI.user_arr == null&&time > refresh_time) //第一次显示
{
List<MessageBoard> message_list = ConfigSystem.GetConfig<MessageBoardModel>().DataList;
FAQUI.user_arr = message_list[0].user_name.Split(",");
int user_index = PlayerPrefs.GetInt("user_index", 0);
if (user_index + 10 >= FAQUI.user_arr.Length) user_index = 0;
FAQUI.content_arr = message_list[0].message.Split(",");
int faq_index = PlayerPrefs.GetInt("faq_index", 0);
if (faq_index + 10 >= FAQUI.content_arr.Length) faq_index = 0;
for (int i = user_index; i < user_index + 10; i++)
{
FAQUI.list_user_arr.Add(FAQUI.user_arr[i]);
}
for (int i = faq_index; i < faq_index + 10; i++)
{
FAQUI.list_content_arr.Add(FAQUI.content_arr[i]);
}
if (PlayerPrefs.GetInt("user_FAQindex", 0) < 10)
{
if (!string.IsNullOrEmpty(PlayerPrefs.GetString("user_FAQcontent", "")))
{
FAQUI.list_user_arr.Insert(10 - PlayerPrefs.GetInt("user_FAQindex", 0), DataMgr.PlayerName.Value);
FAQUI.list_content_arr.Insert(10 - PlayerPrefs.GetInt("user_FAQindex", 0), PlayerPrefs.GetString("user_FAQcontent", ""));
}
}
user_index += 10;
faq_index += 10;
PlayerPrefs.SetInt("user_index", user_index);
PlayerPrefs.SetInt("faq_index", faq_index);
}
if (time > refresh_time)
{
time = 0;
int user_index = PlayerPrefs.GetInt("user_index", 0);
Debug.Log(user_index);
Debug.Log(FAQUI.user_arr);
Debug.Log(FAQUI.user_arr.Length);
if (user_index + 1 >= FAQUI.user_arr.Length) user_index = 0;
int faq_index = PlayerPrefs.GetInt("faq_index", 0);
if (faq_index + 1 >= FAQUI.content_arr.Length) faq_index = 0;
FAQUI.list_user_arr.Add(FAQUI.user_arr[user_index]);
FAQUI.list_content_arr.Add(FAQUI.content_arr[faq_index]);
if (FAQUI.list_user_arr.Count > 50)
{
FAQUI.list_user_arr.RemoveAt(0);
}
if (FAQUI.list_content_arr.Count > 50)
{
FAQUI.list_content_arr.RemoveAt(0);
}
user_index++;
faq_index++;
PlayerPrefs.SetInt("user_FAQindex", PlayerPrefs.GetInt("user_FAQindex", 0) + 1);
PlayerPrefs.SetInt("user_index", user_index);
PlayerPrefs.SetInt("faq_index", faq_index);
GameDispatcher.Instance.Dispatch(GameMsg.faq_refresh);
}
}
#endregion
}
}
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: c21a94c563a4b4e1f8aebe5935b398c0
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
-8
View File
@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: fbee0713fb536464da9e94b14362cec4
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
-45
View File
@@ -1,45 +0,0 @@
namespace ChillConnect
{
public class HallCtrl : BaseCtrl
{
public static HallCtrl Instance { get; private set; }
private HallModel model;
#region
protected override void OnInit()
{
Instance = this;
}
protected override void OnDispose()
{
Instance = null;
}
#endregion
#region
protected override void AddListener()
{
}
protected override void RemoveListener()
{
}
protected override void AddServerListener()
{
}
protected override void RemoveServerListener()
{
}
#endregion
}
}
@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: bd5b8e4d648549379d2bc8fcaa0d9a40
timeCreated: 1671086538
-49
View File
@@ -1,49 +0,0 @@
namespace ChillConnect
{
public class HallModel : BaseModel
{
public decimal showCoin;
public decimal showDollar;
#region
protected override void OnInit()
{
}
protected override void OnDispose()
{
}
// protected override void OnReset()
// {
// }
// #endregion
// #region 读取数据
// protected override void OnReadData()
// {
// }
// #endregion
// #region 本地存储
// protected override void WriteLocalStorage()
// {
// }
#endregion
#region
protected override void AddListener()
{
}
protected override void RemoveListener()
{
}
#endregion
}
}
@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 8449d0d7ae894f44859f02aaf355ea00
timeCreated: 1671086538
-902
View File
@@ -1,902 +0,0 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using DG.Tweening;
using FairyGUI;
using FGUI.Common_01;
using FGUI.Lobby_03;
using IgnoreOPS;
using Newtonsoft.Json;
using SGModule.ApplePay;
using Spine.Unity;
using UnityEngine;
namespace ChillConnect
{
public class HallUI : BaseUI
{
private HallUICtrl ctrl;
private HallModel model;
public com_hall ui;
public static bool isClosed;
private long userUid;
public int ad_numbers;
public int ad_times;
public int active_cd = 10;
private Tweener tweener;
private SkeletonAnimation anim_ad;
private int limitTimes;
private int OnlineLimit;
private string formattedDate = "";
private btn_noads btn_noads;
public HallUI(HallUICtrl ctrl) : base(ctrl)
{
uiName = UIConst.HallUI;
this.ctrl = ctrl;
}
protected override void SetUIInfo(UIInfo uiInfo)
{
uiInfo.packageName = "Lobby_03";
uiInfo.assetName = "com_hall";
uiInfo.layerType = UILayerType.Normal;
uiInfo.isNeedOpenAnim = false;
uiInfo.isNeedCloseAnim = false;
uiInfo.isNeedUIMask = false;
}
#region
protected override void OnInit()
{
model = moduleManager.GetModel(ModelConst.HallModel) as HallModel;
InitData();
}
protected override void OnClose()
{
HallManager.Instance.UpdateSecondEvent -= UpBtnCoin;
isClosed = true;
//关闭时保存cd数据
PlayerPrefs.SetInt($"active_cd_num_{userUid}", active_cd);
// HallManager.Instance.countTimes = (int)Time.time;
CommonHelper.FadeOut(ui);
tweener?.Kill();
closeCallback?.Invoke();
}
protected override void OnBind()
{
ui = baseUI as com_hall;
}
protected override void OnOpenBefore(object args)
{
if (Screen.safeArea.y != 0)
{
ui.top_group.y += 68;
ui.left_group.y += 68;
ui.right_group.y += 68;
ui.btn_money.y += 60;
}
// ui.com_panel.scrollPane.ScrollRight(12,false);
// if(GameHelper.IsGiftSwitch())
// {
// ui.com_panel.scrollPane.touchEffect = false;
// }
var anim_paly = FXManager.Instance.SetFx<SkeletonAnimation>(ui.btn_gold.GetChild("gold_anim") as GGraph,
Fx_Type.fx_coin, ref closeCallback);
anim_paly.state.SetAnimation(0, "animation", true);
CreateGoldtimeList();
int num = PlayerPrefs.GetInt("new_one", 0);
limitTimes = ConfigSystem.GetConfig<OnlineRewardsModel>().DataList[0].OnlineCountTime;
OnlineLimit = ConfigSystem.GetConfig<OnlineRewardsModel>().DataList[0].OnlineLimitNum;
DateTime dataTime = DateTime.Now;
formattedDate = dataTime.ToString("yyyy_MM_dd");
btn_noads = ui.btn_noads as btn_noads;
// int hall_cd = PlayerPrefs.GetInt($"coin_cd_times_{formattedDate}", 0);
// if (HallManager.Instance.countTimes != 0)
// {
// int cds = (int)Time.time - HallManager.Instance.countTimes;
// cds = hall_cd - cds;
// PlayerPrefs.SetInt($"coin_cd_times_{formattedDate}", cds <= 0 ? 0 : cds);
// HallManager.Instance.countTimes = 0;
// }
GameHelper.IsShowFirstReward();
GameHelper.IsShowPettyReward();
GameHelper.ShowStatementView();
isClosed = false;
var loginModel = GameHelper.GetLoginModel();
userUid = loginModel.Uid;
RankSystemMgr.Instance.checkUsers();
InitView();
UpBtnCoin();
HallManager.Instance.UpdateSecondEvent += UpBtnCoin;
(ui.btn_money as com_money).btn_ch.title = GameHelper.getDesByKey("ch_out_1");
}
protected override void OnOpen(object args)
{
// CommonHelper.FadeIn(ui);
}
protected override void OnHide()
{
}
protected override void OnDisplay(object args)
{
}
public override void OnSwitchLanguage()
{
base.OnSwitchLanguage();
InitView();
}
#endregion
#region
protected override void AddListener()
{
HallManager.Instance.AddChangeGiftSwitch(InitView);
GameDispatcher.Instance.AddListener(GameMsg.RefreshMakeupData, OnRefreshMakeupData);
GameDispatcher.Instance.AddListener(GameMsg.RefreshRedDot, RefreshRed);
PreferencesDispatcher<int>.Instance.AddListener(DataMsg.playerAvatarId, UpdataAvatar);
GameDispatcher.Instance.AddListener(GameMsg.noads_refresh, SetBtnAds);
PreferencesDispatcher<string>.Instance.AddListener(DataMsg.playerName, OnChangeName);
HallManager.Instance.UpdateEvent += UpdateEvent;
}
protected override void RemoveListener()
{
HallManager.Instance.RemoveChangeGiftSwitch(InitView);
GameDispatcher.Instance.RemoveListener(GameMsg.RefreshMakeupData, OnRefreshMakeupData);
GameDispatcher.Instance.RemoveListener(GameMsg.RefreshRedDot, RefreshRed);
GameDispatcher.Instance.RemoveListener(GameMsg.noads_refresh, SetBtnAds);
PreferencesDispatcher<int>.Instance.RemoveListener(DataMsg.playerAvatarId, UpdataAvatar);
PreferencesDispatcher<string>.Instance.RemoveListener(DataMsg.playerName, OnChangeName);
HallManager.Instance.UpdateEvent -= UpdateEvent;
}
#endregion
private List<Paidcoins> Paidcoins_list = ConfigSystem.GetConfig<PaidcoinsModel>().DataList;
private int time_count = 11;
private com_broadcast_text1 text_ui;
void CreateGoldtimeList()
{
var saveObject = SaveData.GetSaveObject();
if (saveObject == null)
{
Debug.LogError("[CreateGoldtimeList] SaveData.GetSaveObject() returned null");
return;
}
if (Paidcoins_list == null || Paidcoins_list.Count == 0)
{
Debug.LogError("[CreateGoldtimeList] Paidcoins_list is null or empty");
return;
}
int goldtimeLength = saveObject._goldtime != null ? saveObject._goldtime.Length : 0;
Debug.Log($"barry Paidcoins_list======{Paidcoins_list.Count} {goldtimeLength}");
if (saveObject._goldtime == null || saveObject._goldtime.Length != Paidcoins_list.Count)
{
saveObject._goldtime = new int[Paidcoins_list.Count];
Debug.Log($"[CreateGoldtimeList] Initialized _goldtime with length: {Paidcoins_list.Count}");
}
Debug.Log($"barry GetSaveObject._goldtime.Length======{saveObject._goldtime.Length}");
}
private void UpBtnCoin()
{
var saveObject = SaveData.GetSaveObject();
if (saveObject == null)
{
Debug.LogError("[UpBtnCoin] SaveData.GetSaveObject() returned null");
return;
}
if (saveObject._goldtime == null)
{
Debug.LogError("[UpBtnCoin] saveObject._goldtime is null");
return;
}
if (saveObject._goldtime.Length == 0)
{
Debug.LogError("[UpBtnCoin] saveObject._goldtime length is 0");
return;
}
int time = saveObject._goldtime[0];
// Debug.Log($"[UpBtnCoin] time value: {time}, _goldtime length: {saveObject._goldtime.Length}");
if (ui.btn_gold == null)
{
Debug.LogError("[UpBtnCoin] ui.btn_gold is null");
return;
}
com_gold btn_gold = ui.btn_gold as com_gold;
if (btn_gold == null)
{
Debug.LogError("[UpBtnCoin] ui.btn_gold cast to com_gold failed");
return;
}
if (btn_gold.state == null)
{
Debug.LogError("[UpBtnCoin] btn_gold.state is null");
return;
}
if (Paidcoins_list == null)
{
Debug.LogError("[UpBtnCoin] Paidcoins_list is null");
return;
}
if (Paidcoins_list.Count == 0)
{
Debug.LogError("[UpBtnCoin] Paidcoins_list count is 0");
return;
}
// Debug.Log($"[UpBtnCoin] Paidcoins_list count: {Paidcoins_list.Count}, receive_CD: {Paidcoins_list[0].receive_CD}");
if (time + Paidcoins_list[0].receive_CD < GameHelper.GetNowTime())
{
btn_gold.state.selectedIndex = 2;
if (ui.btn_shop != null && ui.btn_shop.red != null)
{
ui.btn_shop.red.visible = true;
// Debug.Log("[UpBtnCoin] Set btn_shop.red.visible = true");
}
}
else
{
btn_gold.state.selectedIndex = 1;
if (ui.btn_shop != null && ui.btn_shop.red != null)
{
ui.btn_shop.red.visible = false;
}
}
time_count++;
if (ui.btn_sign != null && ui.btn_sign.red != null)
{
ui.btn_sign.red.visible = signRed();
}
if (!GameHelper.IsGiftSwitch())
{
// Debug.Log("[UpBtnCoin] Gift switch is disabled, returning early");
return;
}
if (DataMgr.MakeupTaskHistory.Value == null)
{
// Debug.LogError("[UpBtnCoin] DataMgr.MakeupTaskHistory.Value is null");
return;
}
if (DataMgr.MakeupTaskHistory.Value.Count < 1)
{
// Debug.LogWarning("[UpBtnCoin] MakeupTaskHistory count is less than 1");
return;
}
MakeupTaskData data = DataMgr.MakeupTaskHistory.Value[DataMgr.MakeupTaskHistory.Value.Count - 1];
if (data == null)
{
// Debug.LogError("[UpBtnCoin] MakeupTaskData is null");
return;
}
// Debug.Log($"[UpBtnCoin] MakeupTaskData status: {data.status}, ch_time: {data.ch_time}");
if (data.status != MakeupTaskStatus.Level)
{
var btnMoney = ui.btn_money as com_money;
if (btnMoney != null && btnMoney.group_tips != null)
{
btnMoney.group_tips.visible = false;
}
return;
}
if (data.ch_time > GameHelper.GetNowTime())
{
var btnMoney = ui.btn_money as com_money;
if (btnMoney != null && btnMoney.text_time != null)
{
btnMoney.text_time.text = "Only " + CommonHelper.TimeFormat((int)data.ch_time - Convert.ToInt32(GameHelper.GetNowTime()), CountDownType.Hour);
// Debug.Log($"[UpBtnCoin] Updated text_time with remaining time");
}
}
else
{
var btnMoney = ui.btn_money as com_money;
if (btnMoney != null && btnMoney.group_tips != null)
{
btnMoney.group_tips.visible = false;
// Debug.Log("[UpBtnCoin] ch_time expired, hide group_tips");
}
return;
}
time_number++;
// Debug.Log($"[UpBtnCoin] time_number: {time_number}");
var btnMoney2 = ui.btn_money as com_money;
if (btnMoney2 != null && btnMoney2.group_tips != null)
{
if (time_number > 15)
{
btnMoney2.group_tips.visible = true;
// Debug.Log("[UpBtnCoin] time_number > 15, show group_tips");
}
if (time_number > 20)
{
btnMoney2.group_tips.visible = false;
time_number = 0;
// Debug.Log("[UpBtnCoin] time_number > 20, hide group_tips and reset counter");
}
}
}
private int time_number = 0;
void OnRefreshMakeupData(object obj)
{
}
private void InitData()
{
model.showCoin = DataMgr.Coin.Value;
model.showDollar = DataMgr.Ticket.Value;
}
private Action closeCallback;
private List<btn_level_play> btn_play_list;
private void InitView()
{
// var anim_paly = FXManager.Instance.SetFx<SkeletonAnimation>(ui.btn_play.GetChild("btn_parent") as GGraph,
// Fx_Type.fx_btn_play, ref closeCallback);
// anim_paly.state.SetAnimation(0, "animation", true);
btn_play_list = new List<btn_level_play> { ui.com_level.btn_play1, ui.com_level.btn_play2, ui.com_level.btn_play3, ui.com_level.btn_play4, ui.com_level.btn_play5 };
InitBtn();
Set101();
Set102();
SetName(ui.text_name);
RefreshRed();
SetBtnAds();
UpdataAvatar();
ui.btn_sign.SetClickDownEffect(1.0f);
ui.btn_sign.SetClick(OnClickTreasure);
ui.btn_spin.SetClick(() =>
{
OnClickLuckySpin();
});
ui.bnt_luck_gift.SetClick(() =>
{
OnClickShop();
});
ui.btn_shop.SetClick(() =>
{
OnClickShop();
});
// ui.head_red.visible = PlayerPrefs.GetInt("player_head_red", 0) == 0;
ui.btn_head.SetClick(() =>
{
// if (PlayerPrefs.GetInt("player_head_red", 0) == 0) PlayerPrefs.SetInt("player_head_red", 1);
// ui.head_red.visible = PlayerPrefs.GetInt("player_head_red", 0) == 0;
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.MenuUI_Open);
});
var btnCoin = ui.btn_gold as com_gold;
btnCoin.text_gold.text = $"{DataMgr.Coin.Value:N0}";
btnCoin.SetClick(OnClickShop);
ad_times = PlayerPrefs.GetInt("main_ad_times", 0);
ad_numbers = PlayerPrefs.GetInt("main_ad_numbers", 1);
if (HallManager.Instance.enterHallTimes == 1)
{
reCreatPur();
}
ui.state.selectedIndex = GameHelper.IsGiftSwitch() ? 1 : 0;
if (ConfigSystem.GetConfig<CommonModel>().PiggyBankSwitch == 0 || !GameHelper.IsGiftSwitch())
{
ui.btn_saveingpot.visible = false;
}
ui.btn_saveingpot.SetClick(() =>
{
uiCtrlDispatcher.Dispatch(UICtrlMsg.SaveingPotUI_Open);
});
ui.btn_statement.visible = GameHelper.IsGiftSwitch();
ui.btn_statement.SetClick(() =>
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.StatementViewUI_Open);
});
ui.btn_petty.visible = GameHelper.IsGiftSwitch();
ui.btn_petty.SetClick(() =>
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.PettyAwardUI_Open);
});
if (!GameHelper.IsGiftSwitch() && ConfigSystem.GetConfig<CommonModel>().WVswitch == 0)
{
ui.btn_wv.visible = false;
}
ui.btn_wv.SetClick(() =>
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.H5UI_Open);
});
// btn_noads.SetClick(() =>
// {
// if (!SaveData.GetSaveObject().is_get_packreward && !SaveData.GetSaveObject().is_get_removead)
// {
// if (btn_noads.GetChild("img_ad").visible)
// {
// PackRewardData param = new PackRewardData();
// param.isAutoPop = false;
// param.isNeedScroll = true;
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.PackrewardUI_Open, param);
// }
// else
// {
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.PackrewardUI_Open);
// }
//
// }
// else if (SaveData.GetSaveObject().is_get_packreward)
// {
// PackRewardData param = new PackRewardData();
// param.isAutoPop = false;
// param.isNeedScroll = true;
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.PackrewardUI_Open, param);
// }
// else
// {
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.PackrewardUI_Open);
// }
// GameHelper.showGameUI = false;
// });
if (ConfigSystem.GetConfig<CommonModel>().PiggyBankSwitch == 1 && GameHelper.IsGiftSwitch())
{
bool isPopPot = false;
if (GameHelper.GetLoginModel().NewPlayer)
{
isPopPot = true;
uiCtrlDispatcher.Dispatch(UICtrlMsg.SaveingPotUI_Open);
}
else
{
if (DateTime.Now.Day != PlayerPrefs.GetInt("pot_day", 0))
{
isPopPot = true;
uiCtrlDispatcher.Dispatch(UICtrlMsg.SaveingPotUI_Open);
PlayerPrefs.SetInt("pot_day", DateTime.Now.Day);
}
}
if (!isPopPot)
{
var data = SaveData.GetRankData().rankRewardData;
if (data.Count > 0 && !HallManager.Instance.isShowRankView)
{
HallManager.Instance.isShowRankView = true;
uiCtrlDispatcher.Dispatch(UICtrlMsg.RankRewardUI_Open);
}
}
}
// checkThreeGift();
// ui.btn_failpack.SetClick(() =>
// {
// float progress = showResurgence();
//
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.ResurgenceUI_Open, progress);
// });
ui.btn_three_day.SetClick(() =>
{
// uiCtrlDispatcher.Dispatch(UICtrlMsg.ThreeDaysGiftUI_Open);
});
ui.btn_battle.SetClick(() =>
{
OnClickPass();
});
ui.btn_faq.SetClick(() =>
{
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.FAQUI_Open);
});
ui.btn_rank.SetClick(() =>
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.RankUI_Open);
});
ui.btn_restore.SetClick(() =>
{
ApplePayManager.Instance.AppleRestore((success, message) =>
{
if (success)
{
GameHelper.ShowTips("Restore Purchases Success!");
// SaveData.GetSaveObject().is_get_packreward = success;
SaveData.GetSaveObject().have_slot = success;
GameDispatcher.Instance.Dispatch(GameMsg.noads_refresh);
}
else
{
// Debug.Log("[barry] restore failed: " + success);
GameHelper.ShowTips("There are no recoverable transactions");
}
});
});
ui.btn_task.SetClick(() => { OnClickTask(false); });
ui.btn_start.SetClick(() =>
{
// if (GameHelper.IsGiftSwitch() && !SaveData.GetSaveObject().have_slot && (DateTime.Now.Day != PlayerPrefs.GetInt("off_new", 0)))
// {
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.AddviewnewUI_Open);
// PlayerPrefs.SetInt("off_new", DateTime.Now.Day);
// }
// else if (GameHelper.IsGiftSwitch() && !SaveData.GetSaveObject().have_slot && UnityEngine.Random.Range(0, 100) < ConfigSystem.GetConfig<CommonModel>().BonusInside)
// {
// uiCtrlDispatcher.Dispatch(UICtrlMsg.AddviewnewUI_Open);
// }
// else
OnClickPlay();
});
ui.btn_setting.SetClick(() =>
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.PersonViewUI_Open);
});
}
private void OnClickTask(bool isLevel)
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.NewTaskUI_Open, isLevel);
}
private void InitBtn()
{
int level_ = GameHelper.GetLevel();
int start_level = 0;
if (level_ >= 3)
{
start_level = level_ - 2;
ui.com_level.state.selectedIndex = 2;
}
else
{
ui.com_level.state.selectedIndex = level_ - 1;
start_level = 1;
}
for (int i = 0; i < 5; i++)
{
int lv = start_level + i;
btn_play_list[i].text_level.text = lv.ToString();
if (lv < level_)
{
btn_play_list[i].state.selectedIndex = 2;
}
else if (lv == level_)
{
btn_play_list[i].state.selectedIndex = 1;
btn_play_list[i].SetClick(() =>
{
// if (GameHelper.IsGiftSwitch() && !SaveData.GetSaveObject().have_slot && (DateTime.Now.Day != PlayerPrefs.GetInt("off_new", 0)))
// {
// UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.AddviewnewUI_Open);
// PlayerPrefs.SetInt("off_new", DateTime.Now.Day);
// }
// else if (GameHelper.IsGiftSwitch() && !SaveData.GetSaveObject().have_slot && UnityEngine.Random.Range(0, 100) < ConfigSystem.GetConfig<CommonModel>().BonusInside)
// {
// uiCtrlDispatcher.Dispatch(UICtrlMsg.AddviewnewUI_Open);
// }
// else
OnClickPlay();
});
}
else
{
btn_play_list[i].state.selectedIndex = 0;
}
}
}
void SetBtnAds(object a = null)
{
// if (SaveData.GetSaveObject().is_get_removead && SaveData.GetSaveObject().is_get_packreward)
// {
// btn_noads.visible = false;
// }
if (!SaveData.GetSaveObject().is_get_removead && !SaveData.GetSaveObject().is_get_packreward)
{
btn_noads.t0.Play(-1, 0, null);
}
else if (SaveData.GetSaveObject().is_get_removead && SaveData.GetSaveObject().is_get_packreward)
{
btn_noads.t0.Stop();
// btn_noads.visible = false;
btn_noads.img_pack.visible = false;
btn_noads.img_ad.visible = true;
}
else if (SaveData.GetSaveObject().is_get_packreward)
{
btn_noads.t0.Stop();
btn_noads.t1.Play();
//btn_noads.state.selectedIndex = 0;
btn_noads.img_pack.visible = false;
btn_noads.img_ad.visible = true;
}
else if (SaveData.GetSaveObject().is_get_removead)
{
btn_noads.t0.Stop();
btn_noads.t1.Play();
btn_noads.img_pack.visible = true;
btn_noads.img_ad.visible = false;
//btn_noads.state.selectedIndex = 1;
}
}
private void RefreshRed(object isShow = null)
{
ui.btn_battle.GetChild("red").visible = SaveData.battlepassred();
ui.btn_task.GetChild("red").visible = SaveData.timetaskred() || SaveData.passtaskred() || SaveData.AdTaskred();
ui.btn_rank.GetChild("red").visible = SaveData.GetRankData().rankRewardData.Count > 0;
}
private bool signRed()
{
for (var i = 0; i < 7; i++)
{
var signDays = DataMgr.SignState.Value.Count;
var isToday = false;
if (signDays > 0)
{
isToday = GameHelper.InToday(DataMgr.SignState.Value[signDays - 1], 0, true);
}
if (i == signDays)
{
if (signDays > 0 && isToday)
{
continue;
}
else
{
// sk.SetActive(true);
// sk.state.SetAnimation(0, "signin1_6", true);
// btnSign.status.selectedIndex = btn_sign.State_today;
return true;
}
}
}
return false;
}
private void checkThreeGift(object obj = null)
{
var isToday = GameHelper.InToday(SaveData.GetSaveObject().last_got_three_gift_time, 0, true);
int three_gift_got_index = SaveData.GetSaveObject().three_gift_got_index;
if (three_gift_got_index > (int)rewardState.day3)
{
ui.btn_three_day.visible = false;
}
else if (!isToday)
{
ui.btn_three_day.GetChild("red").visible = true;
}
else
{
ui.btn_three_day.GetChild("red").visible = false;
}
}
float showResurgence()
{
string jsonFilePath = Path.Combine(Application.persistentDataPath, "RainData1.json");
string jsonstr = "";
if (File.Exists(jsonFilePath))
{
jsonstr = File.ReadAllText(jsonFilePath);
//return JsonUtility.FromJson<MyData>(json);
}
List<List<Card_item>> card_item_list = JsonConvert.DeserializeObject<List<List<Card_item>>>(jsonstr);
int surplus_item = 0;
for (int i = 0; i < card_item_list.Count; i++)
{
for (int j = 0; j < card_item_list[i].Count; j++)
{
// if (card_item_list[i][j].sheep_card.IsDestroyed() || card_item_list[i][j].sheep_card == null) continue;
surplus_item++;
}
}
return 1 - (float)surplus_item / (SaveData.GetSaveObject().all_card_numbers * 3);
}
void UpdateEvent()
{
long t = SaveData.GetSaveObject().failed_pack_time;
if (t > GameHelper.GetNowTime())
{
ui.btn_failpack.visible = true;
long time_ = t * 1000 - GameHelper.getNowTimeByMillisecond();
DateTime oldDate = new DateTime(1970, 1, 1);
oldDate = oldDate.AddMilliseconds(time_);
ui.btn_failpack.GetChild("lab_time").text = DateTimeManager.Instance.DateTimeToFFFString(oldDate);
}
else
{
ui.btn_failpack.visible = false;
HallManager.Instance.UpdateEvent -= UpdateEvent;
}
}
private void UpdataAvatar(object obj = null)
{
var head = ui.btn_head as btn_head;
GameHelper.SetSelfAvatar(head.load_avatar);
// if (btn_play_list.Count == 0) return;
// for (int i = 0; i < btn_play_list.Count; i++)
// {
// var head1 = btn_play_list[i].btn_hall_head.btn_head as btn_head;
// GameHelper.SetSelfAvatar(head1.load_avatar);
// }
;
}
void reCreatPur(object a = null)
{
// PurchasingManager.Instance.startPay();
}
private void OnClickLuckySpin()
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.WheelUI_Open);
}
private void OnClickTreasure()
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.SignInUI_Open);
}
private void OnClickShop()
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.BuygoldUI_Open);
}
private void OnClickSetting()
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.MenuUI_Open);
}
private void OnClickPass()
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.PassViewUI_Open);
}
private void OnClickPlay()
{
GameHelper.gameType = 0;
GameDispatcher.Instance.Dispatch(GameMsg.OpenGame);
}
public void OnUpdate101(object obj = null)
{
Set101();
}
public void OnUpdate102(object obj = null)
{
Set102();
}
public void Set101(decimal coin = -1)
{
if (coin < 0)
{
coin = DataMgr.Coin.Value;
}
var btnCoin = ui.btn_gold as com_gold;
btnCoin.text_gold.text = $"{coin:N0}";
}
public void Set102()
{
decimal coin = DataMgr.Ticket.Value;
com_money com_money = ui.btn_money as com_money;
com_money.text_gold.text = coin.ToString("0.00");
com_money.SetClick(() =>
{
var makeupTaskData = DataMgr.MakeupTaskHistory.Value.Last();
var vo = ConfigSystem.GetConfig<MakeupModel>().GetData(makeupTaskData.tableId);
//DataMgr.Ticket.Value=99999;
//makeupTaskData.videoCount = 50;
if (vo == null)
{
return;
}
var leftCash = (double)Math.Max(vo.item_need - DataMgr.Coin.Value, 0);
//com_box.text_more.SetVar("left", GameHelper.Get101Str((decimal)leftCash)).FlushVars();
// com_box.pb_num.max = vo.item_need;
// com_box.pb_num.value = vo.item_need - leftCash;
// pbTxt.text =
// $"{GameHelper.Get101Str((decimal)(vo.item_need - leftCash))}/{GameHelper.Get101Str((decimal)com_box.pb_num.max)}";
GameHelper.showGameUI = false;
uiCtrlDispatcher.Dispatch(UICtrlMsg.MakeupConfirmUI_Open, makeupTaskData);
});
}
private void OnChangeName(ChangeValue<string> obj)
{
GameHelper.SetName(ui.text_name);
}
private void SetName(GTextField gTextField)
{
GameHelper.SetName(gTextField);
}
}
}
@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: c3aca551ceb44e4f80986c9da6881522
timeCreated: 1671086538
-167
View File
@@ -1,167 +0,0 @@
using IgnoreOPS;
using SGModule.Net;
using SGModule.NetKit;
using UnityEngine;
namespace ChillConnect
{
public class HallUICtrl : BaseUICtrl
{
private HallUI ui;
private HallModel model;
#if GAME_RELEASE
private readonly float _countTime = 5 * 60.0f;
#else
private readonly float _countTime = 1 * 60.0f;
#endif
private uint openUIMsg = UICtrlMsg.MainUI_Open;
private uint closeUIMsg = UICtrlMsg.MainUI_Close;
#region
protected override void OnInit()
{
model = moduleManager.GetModel(ModelConst.HallModel) as HallModel;
}
protected override void OnDispose()
{
HallManager.Instance.UpdateSecondEvent -= RefreshConfig;
}
public override void OpenUI(object args = null)
{
if (ui == null)
{
ui = new HallUI(this);
ui.Open(args);
}
}
public override void CloseUI(object args = null)
{
if (ui != null && !ui.isClose)
{
ui.Close();
}
ui = null;
}
#endregion
#region
public override uint GetOpenUIMsg(string uiName)
{
return openUIMsg;
}
public override uint GetCloseUIMsg(string uiName)
{
return closeUIMsg;
}
protected override void AddListener()
{
uiCtrlDispatcher.AddListener(openUIMsg, OpenUI);
uiCtrlDispatcher.AddListener(closeUIMsg, CloseUI);
GameDispatcher.Instance.AddListener(GameMsg.Update101, OnUpdate101);
GameDispatcher.Instance.AddListener(GameMsg.Update101Completed, OnUpdate101Completed);
GameDispatcher.Instance.AddListener(GameMsg.Update102, OnUpdate102);
GameDispatcher.Instance.AddListener(GameMsg.Update102Completed, OnUpdate102Completed);
HallManager.Instance.UpdateSecondEvent += RefreshConfig;
}
protected override void RemoveListener()
{
uiCtrlDispatcher.RemoveListener(openUIMsg, OpenUI);
uiCtrlDispatcher.RemoveListener(closeUIMsg, CloseUI);
GameDispatcher.Instance.RemoveListener(GameMsg.Update101, OnUpdate101);
GameDispatcher.Instance.RemoveListener(GameMsg.Update102, OnUpdate102);
GameDispatcher.Instance.RemoveListener(GameMsg.Update101Completed, OnUpdate101Completed);
GameDispatcher.Instance.RemoveListener(GameMsg.Update102Completed, OnUpdate102Completed);
HallManager.Instance.UpdateSecondEvent -= RefreshConfig;
}
protected override void AddServerListener()
{
}
protected override void RemoveServerListener()
{
}
#endregion
private void OnUpdate101(object obj)
{
ui?.OnUpdate101(obj);
}
private void OnUpdate101Completed(object obj = null)
{
// if (!DataMgr.IsShowRewardFly101)
// {
// var value = DataMgr.Coin.Value;
// model.showCoin = value;
// ui?.Set101();
// // var cardRedeemNewVOModel = ConfigSystem.GetConfig<CardRedeemNewModel>();
// // if (DataMgr.CoinMakeupTaskHistory.Count == 1)
// // {
// // var vo = cardRedeemNewVOModel.DataList.First();
// // }
// }
}
private void OnUpdate102(object obj)
{
ui?.OnUpdate102(obj);
}
private void OnUpdate102Completed(object obj = null)
{
// if (!DataMgr.IsShowRewardFly102)
// {
// var value = DataMgr.Ticket.Value;
// model.showDollar = value;
// if (DataMgr.MakeupTaskHistory.Value.Count == 1)
// {
// }
// }
}
private int _lastUpdateTime;
private void RefreshConfig()
{
_lastUpdateTime++;
// Debug.Log($"barry RefreshConfig======= {_lastUpdateTime}");
if (_lastUpdateTime <= _countTime) return;
_lastUpdateTime = 0;
NetKit.Instance.Post<LoginModel>("settingRefresh", null, response =>
{
var savedCfgName = PlayerPrefs.GetString("configFileName");
if (!response.IsSuccess) return;
if (savedCfgName.Equals(response.Data.Setting)) return;
// Debug.Log($"barry===== setting==== {obj.setting}" );
var loginData = GameHelper.GetLoginModel();
loginData.Setting = response.Data.Setting;
NetworkDispatcher.Instance.Dispatch(NetworkMsg.GetConfig, 2);
});
}
}
}
@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 27962707aa6b41ea8d03411c27188be0
timeCreated: 1671086538
-8
View File
@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 74b14dc12a002f64b812f52d5eeca13c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -1,42 +0,0 @@
namespace ChillConnect
{
public class RainPlayCtrl : BaseCtrl
{
public static RainPlayCtrl Instance { get; private set; }
private RainPlayModel model;
#region
protected override void OnInit()
{
Instance = this;
//model = ModuleManager.Instance..GetModel(ModelConst.RainPlayModel) as RainPlayModel;
}
protected override void OnDispose()
{
Instance = null;
}
#endregion
#region
protected override void AddListener()
{
}
protected override void RemoveListener()
{
}
protected override void AddServerListener()
{
}
protected override void RemoveServerListener()
{
}
#endregion
}
}
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: dccdf152f07be452bbd8727e8a8aa708
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -1,46 +0,0 @@
namespace ChillConnect
{
public class RainPlayModel : BaseModel
{
#region
public decimal showDollar;
protected override void OnInit()
{
}
protected override void OnDispose()
{
}
// protected override void OnReset()
// {
// }
// #endregion
// #region 读取数据
// protected override void OnReadData()
// {
// }
// #endregion
// #region 本地存储
// protected override void WriteLocalStorage()
// {
// }
#endregion
#region
protected override void AddListener()
{
}
protected override void RemoveListener()
{
}
#endregion
}
}
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: eb3e7a6ac36b945dcb2b6b04634732d7
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
File diff suppressed because it is too large Load Diff
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 901f044832e634fd69e12ec14f995ac7
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -1,267 +0,0 @@
using System.Collections.Generic;
using System.Globalization;
// using AppsFlyerSDK;
using IgnoreOPS;
using UnityEngine;
namespace ChillConnect
{
public class RainPlayUICtrl : BaseUICtrl
{
private RainPlayUI ui;
private RainPlayModel model;
private uint openUIMsg = UICtrlMsg.RainPlayUI_Open;
private uint closeUIMsg = UICtrlMsg.RainPlayUI_Close;
#region
protected override void OnInit()
{
//model = ModuleManager.Instance.GetModel(ModelConst.RainPlayModel) as RainPlayModel;
}
protected override void OnDispose()
{
}
public override void OpenUI(object args = null)
{
if (ui == null)
{
ui = new RainPlayUI(this);
ui.Open(args);
}
}
public override void CloseUI(object args = null)
{
if (ui != null && !ui.isClose)
{
ui.Close();
}
ui = null;
}
#endregion
#region
public override uint GetOpenUIMsg(string uiName)
{
return openUIMsg;
}
public override uint GetCloseUIMsg(string uiName)
{
return closeUIMsg;
}
protected override void AddListener()
{
uiCtrlDispatcher.AddListener(openUIMsg, OpenUI);
uiCtrlDispatcher.AddListener(closeUIMsg, CloseUI);
GameDispatcher.Instance.AddListener(GameMsg.apple_pay_success, pay_success);
}
protected override void RemoveListener()
{
uiCtrlDispatcher.RemoveListener(openUIMsg, OpenUI);
uiCtrlDispatcher.RemoveListener(closeUIMsg, CloseUI);
GameDispatcher.Instance.RemoveListener(GameMsg.apple_pay_success, pay_success);
}
protected override void AddServerListener()
{
}
protected override void RemoveServerListener()
{
}
private bool CheckIsOpen(string name)
{
var isOpen = UIManager.Instance.IsExistUI(name);
return isOpen;
}
void pay_success(object str)
{
string type = (string)str;
string purch_number = "";
if (type.Contains("buy_gold"))
{
if (type.StartsWith("buy_gold"))
{
int startIndex = "buy_gold".Length;
string suffix = type[startIndex..]; // 截取 "gold" 后的所有字符
int suffix_num = int.Parse(suffix);
purch_number = ConfigSystem.GetConfig<PaidcoinsModel>().DataList[suffix_num].Payment_amount2.ToString();
if (!CheckIsOpen(UIConst.BuygoldUI))
{
List<Paidcoins> list = ConfigSystem.GetConfig<PaidcoinsModel>().DataList;
// GetPayReward(gold_num);
DataMgr.Coin.Value += list[suffix_num].Actual_coins;
SaveData.GetSaveObject().gold_shop_time[suffix_num] = (int)GameHelper.GetNowTime();
SaveData.saveDataFunc();
GameDispatcher.Instance.Dispatch(GameMsg.Gold_refresh);
}
}
}
else if (type == PurchasingManager.GetPaySku(PayType.buy_one))
{
SaveData.GetSaveObject().have_slot = true;
SaveData.saveDataFunc();
GameDispatcher.Instance.Dispatch(GameMsg.Slot_refresh);
if (GameHelper.IsGiftSwitch()) GameHelper.ShowTips("Purchase successful");
GameHelper.IsTemporaryEnd = false;
purch_number = ConfigSystem.GetConfig<CommonModel>().addspace2.ToString();
}
else if (type == PurchasingManager.GetPaySku(PayType.buy_one_off))
{
purch_number = GameHelper.GetCommonModel().AddDiscount2.ToString();
if (!CheckIsOpen(UIConst.AddViewoffUI))
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.AddViewoffUI_Close);
SaveData.GetSaveObject().have_slot = true;
SaveData.saveDataFunc();
GameDispatcher.Instance.Dispatch(GameMsg.Slot_refresh);
}
GameHelper.IsTemporaryEnd = false;
if (GameHelper.IsGiftSwitch()) GameHelper.ShowTips("Purchase successful");
}
else if (type == PurchasingManager.GetPaySku(PayType.remove_ad))
{
SaveData.GetSaveObject().remove_ad_time = (int)GameHelper.GetNowTime() + ConfigSystem.GetConfig<CommonModel>().RemoveADsPackDuration * 3600;
SaveData.GetSaveObject().is_get_removead = true;
SaveData.saveDataFunc();
// GameHelper.AddGoldNumber(ConfigSystem.GetConfig<PaidgiftModel>().DataList[1].coins_quantity);
// GameDispatcher.Instance.Dispatch(GameMsg.Gold_refresh);
GameDispatcher.Instance.Dispatch(GameMsg.noads_refresh);
GameDispatcher.Instance.Dispatch(GameMsg.UpdateNoads);
if (GameHelper.IsGiftSwitch()) GameHelper.ShowTips("Purchase successful");
purch_number = ConfigSystem.GetConfig<PaidgiftModel>().DataList[1].Paid_price2.ToString();
}
else if (type == PurchasingManager.GetPaySku(PayType.pack_reward))
{
List<Paidgift> list = ConfigSystem.GetConfig<PaidgiftModel>().DataList;
int gold_num = list[0].coins_quantity;
int back_num = list[0].props_quantity[1];
int out_num = list[0].props_quantity[0];
int refresh_num = list[0].props_quantity[2];
// GameHelper.AddGoldNumber(gold_num);
GameHelper.AddItemNumber(0, out_num);
GameHelper.AddItemNumber(1, back_num);
GameHelper.AddItemNumber(2, refresh_num);
SaveData.GetSaveObject().is_get_packreward = true;
SaveData.saveDataFunc();
GameDispatcher.Instance.Dispatch(GameMsg.noads_refresh);
GameDispatcher.Instance.Dispatch(GameMsg.Gold_refresh);
GameDispatcher.Instance.Dispatch(GameMsg.Sheep_item_refresh);
GameDispatcher.Instance.Dispatch(GameMsg.UpdateNoads);
if (GameHelper.IsGiftSwitch()) GameHelper.ShowTips("Purchase successful");
purch_number = ConfigSystem.GetConfig<PaidgiftModel>().DataList[0].Paid_price2.ToString();
}
else if (type == PurchasingManager.GetPaySku(PayType.battle_pass))
{
SaveData.GetSaveObject().is_get_battlepass = true;
int gold = 0;
int out_ = 0;
int back_ = 0;
int refresh_ = 0;
List<Passportrewards> Passportrewards_list = ConfigSystem.GetConfig<PassportrewardsModel>().DataList;
for (int i = 0; i < Passportrewards_list.Count; i++)
{
if (GameHelper.GetBattleLv() > i || (GameHelper.GetGameExp() >= Passportrewards_list[Passportrewards_list.Count - 1].Eliminating_quantity))
{
if (Passportrewards_list[i].Paid_rewards_type == 0) gold += Passportrewards_list[i].Paid_rewards_num;
else if (Passportrewards_list[i].Paid_rewards_type == 1) out_ += Passportrewards_list[i].Paid_rewards_num;
else if (Passportrewards_list[i].Paid_rewards_type == 2) back_ += Passportrewards_list[i].Paid_rewards_num;
else if (Passportrewards_list[i].Paid_rewards_type == 3) refresh_ += Passportrewards_list[i].Paid_rewards_num;
SaveData.GetSaveObject().battle_pass_paylist.Add(i + 1);
}
else break;
}
GameHelper.AddItemNumber(0, out_);
GameHelper.AddItemNumber(1, back_);
GameHelper.AddItemNumber(2, refresh_);
GameDispatcher.Instance.Dispatch(GameMsg.Sheep_item_refresh);
SaveData.saveDataFunc();
purch_number = ConfigSystem.GetConfig<CommonModel>().Passportgift2.ToString();
if (!CheckIsOpen(UIConst.PassViewUI))
{
// DataMgr.Coin.Value += gold;
GetPayReward(gold);
GameDispatcher.Instance.Dispatch(GameMsg.Gold_refresh);
}
}
else if (type == PurchasingManager.GetPaySku(PayType.fail_pack))
{
List<Paidgift> list = ConfigSystem.GetConfig<PaidgiftModel>().DataList;
purch_number = ConfigSystem.GetConfig<PaidgiftModel>().DataList[2].Paid_price2.ToString();
GameDispatcher.Instance.Dispatch(GameMsg.resurgence);
// DataMgr.Coin.Value += ConfigSystem.GetConfig<PaidgiftModel>().DataList[1].coins_quantity;
// GameDispatcher.Instance.Dispatch(GameMsg.Gold_refresh);
int back_num = list[2].props_quantity[1];
int out_num = list[2].props_quantity[0];
int refresh_num = list[2].props_quantity[2];
//GameHelper.addGoldNumber(gold_num);
int gold_num = list[2].coins_quantity;
if (!UIManager.Instance.IsExistUI(UIConst.ResurgenceUI)) DataMgr.Coin.Value += gold_num;
GameHelper.AddItemNumber(0, out_num);
GameHelper.AddItemNumber(1, back_num);
GameHelper.AddItemNumber(2, refresh_num);
GameDispatcher.Instance.Dispatch(GameMsg.Sheep_item_refresh);
SaveData.saveDataFunc();
}
else if (type == PurchasingManager.GetPaySku(PayType.three_days_gift))
{
SaveData.GetSaveObject().is_get_ThreeDaysGift = true;
SaveData.saveDataFunc();
purch_number = ConfigSystem.GetConfig<MultigiftModel>().DataList[0].Paid_price2.ToString();
}
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.PayloadingUI_Close);
if (!GameHelper.IsAdModelOfPay() && !string.IsNullOrEmpty(purch_number) && decimal.TryParse(purch_number, out decimal revenue))
{
// Debug.Log("付费收益上报AF----------- " + revenue);
// adCallbackInfo.Clear();
// adCallbackInfo.Add("appsflyer_id", AppsFlyer.getAppsFlyerId());
// adCallbackInfo.Add("customer_user_id", GameHelper.GetLoginModel().Uid.ToString());
// adCallbackInfo.Add("af_currency", "USD");
// adCallbackInfo.Add("af_revenue", revenue.ToString(CultureInfo.InvariantCulture));
// AppsFlyer.sendEvent("af_purchase", adCallbackInfo);
//
// GameHelper.SendRevenueToServer(Property.Af_purchase, "af_revenue", (int)(revenue * 10000));
//
// RankSystemMgr.Instance.addGameExp(addPointType.buy, revenue);
}
}
private void GetPayReward(decimal goldNum)
{
if (goldNum == 0) return;
var start = new Vector2(540, 960);
var end = new Vector2(75, 25);
var rewardData = new RewardData();
var rewardSingleData = new RewardSingleData(101, goldNum, RewardOrigin.AdTask)
{
startPosition = start,
};
rewardData.AddReward(rewardSingleData);
rewardData.displayType = RewardDisplayType.RewardFly | RewardDisplayType.ValueChange;
GameDispatcher.Instance.Dispatch(GameMsg.GetReward, rewardData);
}
public static Dictionary<string, string> adCallbackInfo = new Dictionary<string, string>();
#endregion
}
}
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: ad90dca2f6a8344fe8ce6cfd224043d1
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
-8
View File
@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: f2db49b0831b1d846889c631d43efc43
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
-40
View File
@@ -1,40 +0,0 @@
namespace ChillConnect
{
public class RankCtrl : BaseCtrl
{
public static RankCtrl Instance { get; private set; }
#region
protected override void OnInit()
{
Instance = this;
//model = ModuleManager.Instance..GetModel(ModelConst.PassunlockModel) as PassunlockModel;
}
protected override void OnDispose()
{
Instance = null;
}
#endregion
#region
protected override void AddListener()
{
}
protected override void RemoveListener()
{
}
protected override void AddServerListener()
{
}
protected override void RemoveServerListener()
{
}
#endregion
}
}
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 11c71e11ab8beb945abda19efa8935b0
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
-26
View File
@@ -1,26 +0,0 @@
namespace ChillConnect
{
public class RankModel : BaseModel
{
#region
protected override void OnInit()
{
}
protected override void OnDispose()
{
}
#endregion
#region
protected override void AddListener()
{
}
protected override void RemoveListener()
{
}
#endregion
}
}
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 23c50b236ee569c4c8456ae41e477dc6
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
-441
View File
@@ -1,441 +0,0 @@
using System;
using System.Collections.Generic;
using DG.Tweening;
using FairyGUI;
using FGUI.Common_01;
using FGUI.rank;
using IgnoreOPS;
using SGModule.Net;
using SGModule.NetKit;
using UnityEngine;
namespace ChillConnect
{
public class RankUI : BaseUI
{
private RankUICtrl ctrl;
private RankModel model;
private com_rank_view ui;
public btn_watchAd btn_WatchAd;
List<UserData> users = new List<UserData>();
List<UserData> topThreeList = new List<UserData>();
rankType curType = rankType.hour;
int selfRank;
float selfBonus;
long countDownTime;
bool newRound;
public RankUI(RankUICtrl ctrl) : base(ctrl)
{
uiName = UIConst.RankUI;
this.ctrl = ctrl;
}
protected override void SetUIInfo(UIInfo uiInfo)
{
uiInfo.packageName = "rank";
uiInfo.assetName = "com_rank_view";
uiInfo.layerType = UILayerType.Popup;
uiInfo.isNeedOpenAnim = false;
uiInfo.isNeedCloseAnim = false;
uiInfo.isNeedUIMask = true;
}
#region
protected override void OnInit()
{
}
protected override void OnClose()
{
HallManager.Instance.UpdateSecondEvent -= upTime;
RankSystemMgr.Instance.upRewardAndRank();
var data = SaveData.GetRankData().rankRewardData;
if (data.Count > 0 && !HallManager.Instance.isShowRankView) {
HallManager.Instance.isShowRankView = true;
uiCtrlDispatcher.Dispatch(UICtrlMsg.RankRewardUI_Open);
}
}
protected override void OnBind()
{
ui = baseUI as com_rank_view;
}
protected override void OnOpenBefore(object args)
{
if (Screen.safeArea.y != 0)
{
ui.group_top.y += 68;
}
TrackKit.SendEvent(Property.rank_Event,Property.RankShow);
HallManager.Instance.UpdateSecondEvent += upTime;
InitView();
if (GameHelper.GetCommonModel().PiggyBankSwitch != 1) {
ui.pot_switch.selectedIndex = 1;
ui.self_pot.type.selectedIndex = 2;
ui.first_pot.type.selectedIndex = 2;
ui.second_pot.type.selectedIndex = 2;
ui.third_pot.type.selectedIndex = 2;
}
}
protected override void OnOpen(object args)
{
}
protected override void OnHide()
{
}
protected override void OnDisplay(object args)
{
}
#endregion
#region
protected override void AddListener()
{
GameDispatcher.Instance.AddListener(GameMsg.RefreshRedDot, RefreshRed);
GameDispatcher.Instance.AddListener(GameMsg.RefreshSaveingPot, RefreshSaveingPot);
GameDispatcher.Instance.AddListener(GameMsg.pack_close, RefreshRed);
}
protected override void RemoveListener()
{
GameDispatcher.Instance.RemoveListener(GameMsg.RefreshRedDot, RefreshRed);
GameDispatcher.Instance.RemoveListener(GameMsg.RefreshSaveingPot, RefreshSaveingPot);
GameDispatcher.Instance.RemoveListener(GameMsg.pack_close, RefreshRed);
}
#endregion
//初始化页面逻辑
private void InitView()
{
RankSystemMgr.Instance.upRewardAndRank();
users = RankSystemMgr.Instance.getRankData(rankType.hour);
SaveingPotHelper.TestingClearTime();
ui.lab_pot.text = $"{SaveData.GetSaveObject().saveingpot_ch:N}";
showRank(curType);
int addPoints = RankSystemMgr.Instance.getAddPointsUI();
if (addPoints > 0)
{
com_add_points add_Points = ui.add_points as com_add_points;
add_Points.visible = true;
add_Points.lab_addPoints.text = "+" + addPoints;
ui.t0.Play();
DOTween.To(() => SaveData.GetRankData().selfUser.hourPoints - addPoints, x =>
{
ui.self_points.lab_value.text = x.ToString();
}, SaveData.GetRankData().selfUser.hourPoints, 1);
}
ui.btn_close.SetClick(CtrlCloseUI);
ui.btn_task_tab.btn_hour.SetClick(() =>
{
ui.btn_task_tab.select.selectedIndex = 0;
showRank(rankType.hour);
});
ui.btn_task_tab.btn_day.SetClick(() =>
{
ui.btn_task_tab.select.selectedIndex = 1;
showRank(rankType.day);
});
ui.btn_task_tab.btn_week.SetClick(() =>
{
ui.btn_task_tab.select.selectedIndex = 2;
showRank(rankType.week);
});
ui.btn_rule.SetClick(() =>
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.RankRuleUI_Open);
});
ui.btn_pot.SetClick(() =>
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.SaveingPotUI_Open);
});
var data = SaveData.GetRankData().rankRewardData;
if (data.Count > 0)
{
uiCtrlDispatcher.Dispatch(UICtrlMsg.RankRewardUI_Open);
}
}
private void showRank(rankType type)
{
// RankSystemMgr.Instance.upRewardAndRank();
curType = type;
users = RankSystemMgr.Instance.getRankData(type);
topThreeList.Clear();
for (int i = 0; i < users.Count; i++)
{
if (users[i].uid == GameHelper.GetLoginModel().Uid)
{
selfRank = i + 1;
selfBonus = users[i].bonus;
break;
}
}
if (users.Count >= 3)
{
topThreeList.AddRange(users.GetRange(0, 3));
users.RemoveRange(0, 3);
}
ui.list_rank.itemRenderer = refreshItem;
if (users.Count > 47)
{
ui.list_rank.numItems = 47;//users.Count;
}
else
{
ui.list_rank.numItems = users.Count;
}
showTopThree();
showTime();
showSelfInfo();
}
private void showTopThree()
{
for (int i = 0; i < topThreeList.Count; i++)
{
if (curType == rankType.hour)
{
if (i == 0)
{
ui.first_points.lab_value.text = topThreeList[i].hourPoints.ToString();
ui.first_pot.lab_value.text = topThreeList[i].bonus.ToString();
var head = ui.head_1 ;
TextureHelper.SetAvatarToLoader(topThreeList[i].headId, head.load_avatar);
ui.lab_name1.text = topThreeList[i].name;
}
else if (i == 1)
{
ui.second_points.lab_value.text = topThreeList[i].hourPoints.ToString();
ui.second_pot.lab_value.text = topThreeList[i].bonus.ToString();
var head = ui.head_2 ;
TextureHelper.SetAvatarToLoader(topThreeList[i].headId, head.load_avatar);
ui.lab_name2.text = topThreeList[i].name;
}
else if (i == 2)
{
ui.third_points.lab_value.text = topThreeList[i].hourPoints.ToString();
ui.third_pot.lab_value.text = topThreeList[i].bonus.ToString();
var head = ui.head_3 ;
TextureHelper.SetAvatarToLoader(topThreeList[i].headId, head.load_avatar);
ui.lab_name3.text = topThreeList[i].name;
}
}
else if (curType == rankType.day)
{
if (i == 0)
{
ui.first_points.lab_value.text = topThreeList[i].dayPoints.ToString();
ui.first_pot.lab_value.text = topThreeList[i].bonus.ToString();
var head = ui.head_1 ;
TextureHelper.SetAvatarToLoader(topThreeList[i].headId, head.load_avatar);
ui.lab_name1.text = topThreeList[i].name;
}
else if (i == 1)
{
ui.second_points.lab_value.text = topThreeList[i].dayPoints.ToString();
ui.second_pot.lab_value.text = topThreeList[i].bonus.ToString();
var head = ui.head_2 ;
TextureHelper.SetAvatarToLoader(topThreeList[i].headId, head.load_avatar);
ui.lab_name2.text = topThreeList[i].name;
}
else if (i == 2)
{
ui.third_points.lab_value.text = topThreeList[i].dayPoints.ToString();
ui.third_pot.lab_value.text = topThreeList[i].bonus.ToString();
var head = ui.head_3 ;
TextureHelper.SetAvatarToLoader(topThreeList[i].headId, head.load_avatar);
ui.lab_name3.text = topThreeList[i].name;
}
}
else if (curType == rankType.week)
{
if (i == 0)
{
ui.first_points.lab_value.text = topThreeList[i].weekPoints.ToString();
ui.first_pot.lab_value.text = topThreeList[i].bonus.ToString();
var head = ui.head_1 ;
TextureHelper.SetAvatarToLoader(topThreeList[i].headId, head.load_avatar);
ui.lab_name1.text = topThreeList[i].name;
}
else if (i == 1)
{
ui.second_points.lab_value.text = topThreeList[i].weekPoints.ToString();
ui.second_pot.lab_value.text = topThreeList[i].bonus.ToString();
var head = ui.head_2 ;
TextureHelper.SetAvatarToLoader(topThreeList[i].headId, head.load_avatar);
ui.lab_name2.text = topThreeList[i].name;
}
else if (i == 2)
{
ui.third_points.lab_value.text = topThreeList[i].weekPoints.ToString();
ui.third_pot.lab_value.text = topThreeList[i].bonus.ToString();
var head = ui.head_3;
TextureHelper.SetAvatarToLoader(topThreeList[i].headId, head.load_avatar);
ui.lab_name3.text = topThreeList[i].name;
}
}
}
}
private void refreshItem(int index, GObject obj)
{
rank_item item = (rank_item)obj;
item.lab_rank.text = (index + 4).ToString();
item.lab_name.text = users[index].name;
if (curType == rankType.hour)
{
item.lab_points.text = users[index].hourPoints.ToString();
}
else if (curType == rankType.day)
{
item.lab_points.text = users[index].dayPoints.ToString();
}
else if (curType == rankType.week)
{
item.lab_points.text = users[index].weekPoints.ToString();
}
item.lab_pot.text = users[index].bonus.ToString();
if (GameHelper.GetCommonModel().PiggyBankSwitch != 1) {
item.pot_switch.selectedIndex = 1;
}
var imgHead = item.btn_head;
TextureHelper.SetAvatarToLoader(users[index].headId, imgHead.load_avatar);
}
private void showSelfInfo()
{
ui.lab_rank.text = selfRank.ToString();
var head = ui.btn_head;
GameHelper.SetSelfAvatar(head.load_avatar);
if (curType == rankType.hour)
{
ui.self_points.lab_value.text = SaveData.GetRankData().selfUser.hourPoints.ToString();
}
else if (curType == rankType.day)
{
ui.self_points.lab_value.text = SaveData.GetRankData().selfUser.dayPoints.ToString();
}
else if (curType == rankType.week)
{
ui.self_points.lab_value.text = SaveData.GetRankData().selfUser.weekPoints.ToString();
}
ui.self_pot.lab_value.text = $"{selfBonus:N}";
ui.lab_name.text = GameHelper.GetUserName();
}
private void showTime()
{
long curTime = GameHelper.GetNowTime();
DateTime utcTime = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddSeconds(curTime);
DateTime curLocalTime = utcTime.ToLocalTime();
int year = curLocalTime.Year;
int month = curLocalTime.Month;
int day = curLocalTime.Day;
int hour = curLocalTime.Hour;
int minute = curLocalTime.Minute;
int sec = curLocalTime.Second;
DayOfWeek dayOfWeek = curLocalTime.DayOfWeek;
int round = hour / ConfigSystem.GetConfig<CommonModel>().HourTime;
string curHM = $"{hour:D2}:{minute:D2}:{sec:D2}";
if (newRound)
{
curHM = $"{hour:D2}:{minute:D2}:00";
}
DateTime dt1 = DateTime.Parse(curHM);
if (curType == rankType.hour)
{
int endHour = (round + 1) * ConfigSystem.GetConfig<CommonModel>().HourTime;
string endHM = $"{endHour:D2}:00:00";
if (endHour >= 24)
{
endHM = "23:59:59";
}
DateTime dt2 = DateTime.Parse(endHM);
TimeSpan difference = dt2 - dt1;
countDownTime = (long)difference.TotalSeconds - 1;
ui.lab_time.text = CommonHelper.TimeFormat((int)countDownTime, CountDownType.Hour);
}
else if (curType == rankType.day)
{
string endHM = "23:59:59";
DateTime dt2 = DateTime.Parse(endHM);
TimeSpan difference = dt2 - dt1;
countDownTime = (long)difference.TotalSeconds - 1;
ui.lab_time.text = CommonHelper.TimeFormat((int)countDownTime, CountDownType.Hour);
}
else if (curType == rankType.week)
{
// 获取本周日 23:59:59
DateTime targetTime = RankSystemMgr.Instance.GetThisWeekdayTime(curLocalTime, DayOfWeek.Sunday, 23, 59, 59);
TimeSpan difference = targetTime - curLocalTime;
countDownTime = (long)difference.TotalSeconds - 1;
ui.lab_time.text = CommonHelper.TimeFormat((int)countDownTime, CountDownType.Day, "D");
}
}
private void upTime()
{
if (countDownTime < 0)
{
newRound = true;
InitView();
return;
}
countDownTime--;
if (curType == rankType.hour)
{
ui.lab_time.text = CommonHelper.TimeFormat((int)countDownTime, CountDownType.Hour);
}
else if (curType == rankType.day)
{
ui.lab_time.text = CommonHelper.TimeFormat((int)countDownTime, CountDownType.Hour);
}
else if (curType == rankType.week)
{
ui.lab_time.text = CommonHelper.TimeFormat((int)countDownTime, CountDownType.Day, "D");
}
}
private void RefreshRed(object isShow = null)
{
SaveingPotHelper.TestingClearTime();
ui.lab_pot.text = $"{SaveData.GetSaveObject().saveingpot_ch:N}";
InitView();
}
private void RefreshSaveingPot(object isShow = null)
{
ui.lab_pot.text = $"{SaveData.GetSaveObject().saveingpot_ch:N}";
}
}
}
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: c000a2e706e9ff545a06354d8619c54e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -1,70 +0,0 @@
namespace ChillConnect
{
public class RankUICtrl : BaseUICtrl
{
private RankUI ui;
private RankModel model;
private uint openUIMsg = UICtrlMsg.RankUI_Open;
private uint closeUIMsg = UICtrlMsg.RankUI_Close;
#region
protected override void OnInit()
{
}
protected override void OnDispose()
{
}
public override void OpenUI(object args = null)
{
if (ui == null)
{
ui = new RankUI(this);
ui.Open(args);
}
}
public override void CloseUI(object args = null)
{
if (ui != null && !ui.isClose)
{
ui.Close();
}
ui = null;
}
#endregion
#region
public override uint GetOpenUIMsg(string uiName)
{
return openUIMsg;
}
public override uint GetCloseUIMsg(string uiName)
{
return closeUIMsg;
}
protected override void AddListener()
{
uiCtrlDispatcher.AddListener(openUIMsg, OpenUI);
uiCtrlDispatcher.AddListener(closeUIMsg, CloseUI);
}
protected override void RemoveListener()
{
uiCtrlDispatcher.RemoveListener(openUIMsg, OpenUI);
uiCtrlDispatcher.RemoveListener(closeUIMsg, CloseUI);
}
protected override void AddServerListener()
{
}
protected override void RemoveServerListener()
{
}
#endregion
}
}
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: b76d3ab80a72dee4ab068b22f7d705e5
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
-8
View File
@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 5dd79be29d5579047a8fbfedca324cb3
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Some files were not shown because too many files have changed in this diff Show More