fix:1、添加项目。2、基本箭头生成
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using IgnoreOPS;
|
||||
using SGModule.Common.Base;
|
||||
using SGModule.Common.Helper;
|
||||
using SGModule.DataStorage;
|
||||
using SGModule.Net;
|
||||
using SGModule.NetKit;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Roy
|
||||
{
|
||||
public class CloudDataSaver {
|
||||
public static void UpdateData(string json, long version, bool onQuit) {
|
||||
Log.Info("CloudDataSaver", $"最新数据版本: {version}, onQuit: {onQuit} ,数据: {json}");
|
||||
if (json == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
// 应用直接退出或者退到后台, 直接保存数据到服务器, 不启用协程发送
|
||||
if (onQuit) {
|
||||
NetApi.UploadPlayerDataUpdate(version, json);
|
||||
return;
|
||||
}
|
||||
|
||||
NetApi.UploadPlayerDataUpdate(version, json, result => {
|
||||
if (result) {
|
||||
Log.Info("CloudDataSaver", $"最新数据版本: {version} ,更新成功");
|
||||
}
|
||||
else {
|
||||
Log.Warning("CloudDataSaver", $"最新数据版本: {version} ,更新失败");
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6099a145d8614f208c13bc07376b70de
|
||||
timeCreated: 1737019217
|
||||
@@ -0,0 +1,49 @@
|
||||
using SGModule.Common.Base;
|
||||
using UnityEngine;
|
||||
|
||||
public class CommonTools
|
||||
{
|
||||
// 设计分辨率宽高比
|
||||
private static readonly Vector2 DesignResolution = new Vector2(1080f, 2420f);
|
||||
// 最小和最大缩放比例
|
||||
private const float MinScale = 0.58f;
|
||||
private const float MaxScale = 1.0f;
|
||||
|
||||
// 计算缩放比例
|
||||
// 计算缩放比例
|
||||
float CalculateScale(Vector2 currentResolution, Vector2 designResolution)
|
||||
{
|
||||
// 计算当前设备和设计分辨率的宽高比
|
||||
|
||||
float currentAspectRatio = currentResolution.y / currentResolution.x;
|
||||
float designAspectRatio = designResolution.y / designResolution.x;
|
||||
|
||||
// 通过宽高比计算缩放比例
|
||||
return currentAspectRatio / designAspectRatio;
|
||||
}
|
||||
|
||||
|
||||
public float GetScale()
|
||||
{
|
||||
|
||||
// 获取当前设备的屏幕分辨率
|
||||
Vector2 currentResolution = new Vector2(Screen.width, Screen.height);
|
||||
|
||||
// 计算缩放比例
|
||||
float scale = CalculateScale(currentResolution, DesignResolution);
|
||||
|
||||
// 限制缩放比例在最大和最小范围内
|
||||
scale = Mathf.Clamp(scale, MinScale, MaxScale);
|
||||
|
||||
return scale;
|
||||
}
|
||||
|
||||
// public SkeletonAnimation InitAdBtnAnim(GGraph parent)
|
||||
// {
|
||||
// // Action closeCallback = null;
|
||||
// // var animation = FXManager.Instance.SetFx<SkeletonAnimation>(parent, Fx_Type.Fx_AdIcon, ref closeCallback);
|
||||
// // animation.state.AddAnimation(0, "animation", true, 0);
|
||||
// //
|
||||
// // return animation;
|
||||
// }
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 856b01c88d464b7d9a330d1eeee84d9e
|
||||
timeCreated: 1735194918
|
||||
@@ -0,0 +1,426 @@
|
||||
// using SGModule.Common.Key;
|
||||
// using SGModule.DataStorage;
|
||||
|
||||
// public partial class DataKeys
|
||||
// {
|
||||
// /// <summary>
|
||||
// /// 首页棋盘人物位置
|
||||
// /// </summary>
|
||||
// public static DataKey HomeRolePos = KeyRegistry.Register<DataKey>("HomeRolePos");
|
||||
|
||||
// /// <summary>
|
||||
// /// 首页棋盘道具位置信息
|
||||
// /// </summary>
|
||||
// public static DataKey HomePropPosData = KeyRegistry.Register<DataKey>("HomePropPosData");
|
||||
|
||||
// /// <summary>
|
||||
// /// 骰子开始刷新时间
|
||||
// /// </summary>
|
||||
// public static DataKey DiceRefreshStartTime = KeyRegistry.Register<DataKey>("DiceRefreshStartTime");
|
||||
|
||||
// /// <summary>
|
||||
// /// 金币购买记录
|
||||
// /// </summary>
|
||||
// public static DataKey CoinPurchaseRecord = KeyRegistry.Register<DataKey>("CoinPurchaseRecord");
|
||||
|
||||
// /// <summary>
|
||||
// /// 礼包购买记录
|
||||
// /// </summary>
|
||||
// public static DataKey PackPurchaseRecord = KeyRegistry.Register<DataKey>("PackPurchaseRecord");
|
||||
|
||||
|
||||
|
||||
// /// <summary>
|
||||
// /// 游戏内货币101
|
||||
// /// </summary>
|
||||
// public static DataKey Currency101 = KeyRegistry.Register<DataKey>("Currency101");
|
||||
|
||||
// /// <summary>
|
||||
// /// 游戏内货币102
|
||||
// /// </summary>
|
||||
// public static DataKey Currency102 = KeyRegistry.Register<DataKey>("Currency102");
|
||||
|
||||
// /// <summary>
|
||||
// /// 游戏内货币101的最大值
|
||||
// /// </summary>
|
||||
// public static DataKey MaxCurrency101 = KeyRegistry.Register<DataKey>("MaxCurrency101");
|
||||
|
||||
// /// <summary>
|
||||
// /// 下次新的一天的时间
|
||||
// /// </summary>
|
||||
// public static DataKey NextNewDayTime = KeyRegistry.Register<DataKey>("NextNewDayTime");
|
||||
|
||||
// /// <summary>
|
||||
// /// 玩家名称
|
||||
// /// </summary>
|
||||
// public static DataKey PlayerName = KeyRegistry.Register<DataKey>("PlayerName");
|
||||
|
||||
// /// <summary>
|
||||
// /// 玩家头像ID
|
||||
// /// </summary>
|
||||
// public static DataKey PlayerAvatarId = KeyRegistry.Register<DataKey>("PlayerAvatarId");
|
||||
|
||||
// /// <summary>
|
||||
// /// 是否重置引导
|
||||
// /// </summary>
|
||||
// public static DataKey IsResetGuide = KeyRegistry.Register<DataKey>("IsResetGuide");
|
||||
|
||||
// /// <summary>
|
||||
// /// 游戏次数
|
||||
// /// </summary>
|
||||
// public static DataKey GameOfCount = KeyRegistry.Register<DataKey>("GameOfCount");
|
||||
|
||||
// /// <summary>
|
||||
// /// 游戏胜利次数
|
||||
// /// </summary>
|
||||
// public static DataKey WinOfGame = KeyRegistry.Register<DataKey>("WinOfGame");
|
||||
|
||||
// /// <summary>
|
||||
// /// 观看视频开始次数总和
|
||||
// /// </summary>
|
||||
// public static DataKey WatchVideoBeginSum = KeyRegistry.Register<DataKey>("WatchVideoBeginSum");
|
||||
|
||||
// /// <summary>
|
||||
// /// 是否为上帝模式
|
||||
// /// </summary>
|
||||
// public static DataKey IsGod = KeyRegistry.Register<DataKey>("IsGod");
|
||||
|
||||
// /// <summary>
|
||||
// /// Facebook ID
|
||||
// /// </summary>
|
||||
// public static DataKey FacebookId = KeyRegistry.Register<DataKey>("FacebookId");
|
||||
|
||||
// /// <summary>
|
||||
// /// Facebook 名称
|
||||
// /// </summary>
|
||||
// public static DataKey FacebookName = KeyRegistry.Register<DataKey>("FacebookName");
|
||||
|
||||
// /// <summary>
|
||||
// /// Facebook 头像URL
|
||||
// /// </summary>
|
||||
// public static DataKey FacebookAvatarUrl = KeyRegistry.Register<DataKey>("FacebookAvatarUrl");
|
||||
|
||||
// /// <summary>
|
||||
// /// 是否通过Facebook登录
|
||||
// /// </summary>
|
||||
// public static DataKey IsFaceBookLogin = KeyRegistry.Register<DataKey>("IsFaceBookLogin");
|
||||
|
||||
// /// <summary>
|
||||
// /// 是否完成引导
|
||||
// /// </summary>
|
||||
// public static DataKey IsGuideFinish = KeyRegistry.Register<DataKey>("IsGuideFinish");
|
||||
|
||||
// /// <summary>
|
||||
// /// 当前问题索引
|
||||
// /// </summary>
|
||||
// public static DataKey CurrentQuestionIndex = KeyRegistry.Register<DataKey>("CurrentQuestionIndex");
|
||||
|
||||
// /// <summary>
|
||||
// /// 兑换绑定引导
|
||||
// /// </summary>
|
||||
// public static DataKey ExchangeBindGuide = KeyRegistry.Register<DataKey>("ExchangeBindGuide");
|
||||
|
||||
// /// <summary>
|
||||
// /// 兑换账户
|
||||
// /// </summary>
|
||||
// public static DataKey ExchangeAccount = KeyRegistry.Register<DataKey>("ExchangeAccount");
|
||||
|
||||
// /// <summary>
|
||||
// /// 兑换名称
|
||||
// /// </summary>
|
||||
// public static DataKey ExchangeName = KeyRegistry.Register<DataKey>("ExchangeName");
|
||||
|
||||
// /// <summary>
|
||||
// /// 使用中的皮肤
|
||||
// /// </summary>
|
||||
// public static DataKey InUseSkin = KeyRegistry.Register<DataKey>("InUseSkin");
|
||||
|
||||
// /// <summary>
|
||||
// /// PayPal账户
|
||||
// /// </summary>
|
||||
// public static DataKey PaypalAccount = KeyRegistry.Register<DataKey>("PaypalAccount");
|
||||
|
||||
// /// <summary>
|
||||
// /// 是否成功兑换
|
||||
// /// </summary>
|
||||
// public static DataKey IsSuccessRedeem = KeyRegistry.Register<DataKey>("IsSuccessRedeem");
|
||||
|
||||
// /// <summary>
|
||||
// /// 是否编辑邀请码
|
||||
// /// </summary>
|
||||
// public static DataKey IsEditInviteCode = KeyRegistry.Register<DataKey>("IsEditInviteCode");
|
||||
|
||||
// /// <summary>
|
||||
// /// WebView补签在线时间
|
||||
// /// </summary>
|
||||
// public static DataKey WebViewMakeUpOnlineTime = KeyRegistry.Register<DataKey>("WebViewMakeUpOnlineTime");
|
||||
|
||||
// /// <summary>
|
||||
// /// WebView广告任务在线时间
|
||||
// /// </summary>
|
||||
// public static DataKey WebViewADTaskOnlineTime = KeyRegistry.Register<DataKey>("WebViewADTaskOnlineTime");
|
||||
|
||||
// /// <summary>
|
||||
// /// 是否显示奖励飞行101
|
||||
// /// </summary>
|
||||
// public static DataKey IsShowRewardFly101 = KeyRegistry.Register<DataKey>("IsShowRewardFly101");
|
||||
|
||||
// /// <summary>
|
||||
// /// 是否显示奖励飞行102
|
||||
// /// </summary>
|
||||
// public static DataKey IsShowRewardFly102 = KeyRegistry.Register<DataKey>("IsShowRewardFly102");
|
||||
|
||||
// /// <summary>
|
||||
// /// 播放奖励111
|
||||
// /// </summary>
|
||||
// public static DataKey PlayReawrd111 = KeyRegistry.Register<DataKey>("PlayReawrd111");
|
||||
|
||||
// /// <summary>
|
||||
// /// 是否显示奖励飞行111
|
||||
// /// </summary>
|
||||
// public static DataKey IsShowRewardFly111 = KeyRegistry.Register<DataKey>("IsShowRewardFly111");
|
||||
|
||||
// /// <summary>
|
||||
// /// 打开奖励次数
|
||||
// /// </summary>
|
||||
// public static DataKey OpenRewardCount = KeyRegistry.Register<DataKey>("OpenRewardCount");
|
||||
|
||||
// /// <summary>
|
||||
// /// 插页奖励显示等级
|
||||
// /// </summary>
|
||||
// public static DataKey InterRewardShowLevel = KeyRegistry.Register<DataKey>("InterRewardShowLevel");
|
||||
|
||||
// /// <summary>
|
||||
// /// 是否显示打开奖励
|
||||
// /// </summary>
|
||||
// public static DataKey IsShowOpenReward = KeyRegistry.Register<DataKey>("IsShowOpenReward");
|
||||
|
||||
// /// <summary>
|
||||
// /// 是否真实处理
|
||||
// /// </summary>
|
||||
// public static DataKey IsRealProcessing = KeyRegistry.Register<DataKey>("IsRealProcessing");
|
||||
|
||||
// /// <summary>
|
||||
// /// 真实观看视频次数
|
||||
// /// </summary>
|
||||
// public static DataKey RealWatchVideo = KeyRegistry.Register<DataKey>("RealWatchVideo");
|
||||
|
||||
// /// <summary>
|
||||
// /// 是否点击H5图标
|
||||
// /// </summary>
|
||||
// public static DataKey IsClickH5Icon = KeyRegistry.Register<DataKey>("IsClickH5Icon");
|
||||
|
||||
// /// <summary>
|
||||
// /// 上次点击主图标时间
|
||||
// /// </summary>
|
||||
// public static DataKey LastClickMainIconTime = KeyRegistry.Register<DataKey>("LastClickMainIconTime");
|
||||
|
||||
// /// <summary>
|
||||
// /// 内部H5 URL1点击次数
|
||||
// /// </summary>
|
||||
// public static DataKey InterH5Url1Count = KeyRegistry.Register<DataKey>("InterH5Url1Count");
|
||||
|
||||
// /// <summary>
|
||||
// /// 内部H5 URL2点击次数
|
||||
// /// </summary>
|
||||
// public static DataKey InterH5Url2Count = KeyRegistry.Register<DataKey>("InterH5Url2Count");
|
||||
|
||||
// /// <summary>
|
||||
// /// 化妆真实报告档位
|
||||
// /// </summary>
|
||||
// public static DataKey MakeupRealReportGear = KeyRegistry.Register<DataKey>("MakeupRealReportGear");
|
||||
|
||||
// /// <summary>
|
||||
// /// 是否为最后一个H5标签
|
||||
// /// </summary>
|
||||
// public static DataKey IsLastH5Tab = KeyRegistry.Register<DataKey>("IsLastH5Tab");
|
||||
|
||||
// /// <summary>
|
||||
// /// 广告现金飞行显示时间
|
||||
// /// </summary>
|
||||
// public static DataKey AdCashFlyShowTime = KeyRegistry.Register<DataKey>("AdCashFlyShowTime");
|
||||
|
||||
// /// <summary>
|
||||
// /// 广告任务次数
|
||||
// /// </summary>
|
||||
// public static DataKey AdTaskCount = KeyRegistry.Register<DataKey>("AdTaskCount");
|
||||
|
||||
// /// <summary>
|
||||
// /// 正确答案次数
|
||||
// /// </summary>
|
||||
// public static DataKey CorrectAnswerCount = KeyRegistry.Register<DataKey>("CorrectAnswerCount");
|
||||
|
||||
// /// <summary>
|
||||
// /// H5停留时间
|
||||
// /// </summary>
|
||||
// public static DataKey H5StayTime = KeyRegistry.Register<DataKey>("H5StayTime");
|
||||
|
||||
// /// <summary>
|
||||
// /// 视频观看次数
|
||||
// /// </summary>
|
||||
// public static DataKey VideoWatchCount = KeyRegistry.Register<DataKey>("VideoWatchCount");
|
||||
|
||||
// /// <summary>
|
||||
// /// 签到次数
|
||||
// /// </summary>
|
||||
// public static DataKey SignInCount = KeyRegistry.Register<DataKey>("SignInCount");
|
||||
|
||||
// /// <summary>
|
||||
// /// 邀请次数
|
||||
// /// </summary>
|
||||
// public static DataKey InviteCount = KeyRegistry.Register<DataKey>("InviteCount");
|
||||
|
||||
// /// <summary>
|
||||
// /// 新手步骤完成
|
||||
// /// </summary>
|
||||
// public static DataKey NaiveStepFinish = KeyRegistry.Register<DataKey>("NaiveStepFinish");
|
||||
|
||||
// /// <summary>
|
||||
// /// 化妆任务H5时间
|
||||
// /// </summary>
|
||||
// public static DataKey MakeupTaskH5Time = KeyRegistry.Register<DataKey>("MakeupTaskH5Time");
|
||||
|
||||
// /// <summary>
|
||||
// /// 化妆条件标记
|
||||
// /// </summary>
|
||||
// public static DataKey MakeupConditionMark = KeyRegistry.Register<DataKey>("MakeupConditionMark");
|
||||
|
||||
// /// <summary>
|
||||
// /// 游戏开始次数
|
||||
// /// </summary>
|
||||
// public static DataKey GameStartCount = KeyRegistry.Register<DataKey>("GameStartCount");
|
||||
|
||||
// /// <summary>
|
||||
// /// 登录游戏今日次数
|
||||
// /// </summary>
|
||||
// public static DataKey LoginGameTodayTimes = KeyRegistry.Register<DataKey>("LoginGameTodayTimes");
|
||||
|
||||
// /// <summary>
|
||||
// /// 视频有效次数
|
||||
// /// </summary>
|
||||
// public static DataKey VideoEffective_count = KeyRegistry.Register<DataKey>("VideoEffective_count");
|
||||
|
||||
// /// <summary>
|
||||
// /// 日志是否有效
|
||||
// /// </summary>
|
||||
// public static DataKey IsLogEffective = KeyRegistry.Register<DataKey>("IsLogEffective");
|
||||
|
||||
// /// <summary>
|
||||
// /// 数据版本
|
||||
// /// </summary>
|
||||
// public static DataKey Data_ver = KeyRegistry.Register<DataKey>("Data_ver");
|
||||
|
||||
// /// <summary>
|
||||
// /// 是否已开始游戏
|
||||
// /// </summary>
|
||||
// public static DataKey HaveBeenGameStart = KeyRegistry.Register<DataKey>("HaveBeenGameStart");
|
||||
|
||||
// /// <summary>
|
||||
// /// 日期
|
||||
// /// </summary>
|
||||
// public static DataKey Date = KeyRegistry.Register<DataKey>("Date");
|
||||
|
||||
// /// <summary>
|
||||
// /// 上次登录天数
|
||||
// /// </summary>
|
||||
// public static DataKey LastLoginDays = KeyRegistry.Register<DataKey>("LastLoginDays");
|
||||
|
||||
// /// <summary>
|
||||
// /// 当天观看滑块视频数量
|
||||
// /// </summary>
|
||||
// public static DataKey ThisDayWatchSlyderVideoNum = KeyRegistry.Register<DataKey>("ThisDayWatchSlyderVideoNum");
|
||||
|
||||
// /// <summary>
|
||||
// /// 下次打开轮盘盖章时间
|
||||
// /// </summary>
|
||||
// public static DataKey NextOpenWheelStampTime = KeyRegistry.Register<DataKey>("NextOpenWheelStampTime");
|
||||
|
||||
// /// <summary>
|
||||
// /// 统计字典
|
||||
// /// </summary>
|
||||
// public static DataKey StatisticDictionary = KeyRegistry.Register<DataKey>("StatisticDictionary");
|
||||
|
||||
// /// <summary>
|
||||
// /// 签到状态列表
|
||||
// /// </summary>
|
||||
// public static DataKey SignState = KeyRegistry.Register<DataKey>("SignState");
|
||||
|
||||
// /// <summary>
|
||||
// /// 已完成引导列表
|
||||
// /// </summary>
|
||||
// public static DataKey CompleteGuideList = KeyRegistry.Register<DataKey>("CompleteGuideList");
|
||||
|
||||
// /// <summary>
|
||||
// /// 一次性统计列表
|
||||
// /// </summary>
|
||||
// public static DataKey OnceStatistcList = KeyRegistry.Register<DataKey>("OnceStatistcList");
|
||||
|
||||
// /// <summary>
|
||||
// /// 已兑换皮肤列表
|
||||
// /// </summary>
|
||||
// public static DataKey HaveRedeemedSkin = KeyRegistry.Register<DataKey>("HaveRedeemedSkin");
|
||||
|
||||
// /// <summary>
|
||||
// /// 邀请数据列表
|
||||
// /// </summary>
|
||||
// public static DataKey InviteDataList = KeyRegistry.Register<DataKey>("InviteDataList");
|
||||
|
||||
// /// <summary>
|
||||
// /// 邀请记录列表
|
||||
// /// </summary>
|
||||
// public static DataKey InviteRecordList = KeyRegistry.Register<DataKey>("InviteRecordList");
|
||||
|
||||
// /// <summary>
|
||||
// /// 邀请补签历史列表
|
||||
// /// </summary>
|
||||
// public static DataKey InviteMakeUpHistoryList = KeyRegistry.Register<DataKey>("InviteMakeUpHistoryList");
|
||||
|
||||
// /// <summary>
|
||||
// /// 补签满足条件的档位列表
|
||||
// /// </summary>
|
||||
// public static DataKey MakeupSatisfyGears = KeyRegistry.Register<DataKey>("MakeupSatisfyGears");
|
||||
|
||||
// /// <summary>
|
||||
// /// 广告任务数据列表
|
||||
// /// </summary>
|
||||
// public static DataKey AdTaskDataList = KeyRegistry.Register<DataKey>("AdTaskDataList");
|
||||
|
||||
// /// <summary>
|
||||
// /// 成就答案列表
|
||||
// /// </summary>
|
||||
// public static DataKey AchievementAnswerList = KeyRegistry.Register<DataKey>("AchievementAnswerList");
|
||||
|
||||
// /// <summary>
|
||||
// /// 成就签到列表
|
||||
// /// </summary>
|
||||
// public static DataKey AchievementSignInList = KeyRegistry.Register<DataKey>("AchievementSignInList");
|
||||
|
||||
// /// <summary>
|
||||
// /// 补签任务历史列表
|
||||
// /// </summary>
|
||||
// public static DataKey MakeupTaskHistory = KeyRegistry.Register<DataKey>("MakeupTaskHistory");
|
||||
|
||||
|
||||
// /// <summary>
|
||||
// /// 游戏自定义的保存对象,数据较多
|
||||
// /// </summary>
|
||||
// public static DataKey SaveObject = KeyRegistry.Register<DataKey>("SaveObject");
|
||||
|
||||
// /// <summary>
|
||||
// /// 关卡数据
|
||||
// /// </summary>
|
||||
// public static DataKey LevelData = KeyRegistry.Register<DataKey>("LevelData");
|
||||
|
||||
// /// <summary>
|
||||
// /// 兑换等级
|
||||
// /// </summary>
|
||||
// public static DataKey ChLevel = KeyRegistry.Register<DataKey>("ChLevel");
|
||||
// public static DataKey RankData = KeyRegistry.Register<DataKey>("RankData");
|
||||
// static DataKeys()
|
||||
// {
|
||||
// LevelData.NeedCloudSave = false;//关卡数据不传云端
|
||||
// RankData.NeedCloudSave = false;//排行榜数据不传云端
|
||||
// }
|
||||
|
||||
|
||||
// }
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 36adb7f5e1844a5ca989aab899b56bfb
|
||||
timeCreated: 1733302980
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8090ac9d102c4dada6d7dd85208e000a
|
||||
timeCreated: 1735199044
|
||||
@@ -0,0 +1,14 @@
|
||||
|
||||
using System;
|
||||
|
||||
public class BuyData
|
||||
{
|
||||
|
||||
public int GoldNum;
|
||||
public int BackNum;
|
||||
public int OutNum;
|
||||
public int RefreshNum;
|
||||
public int Style;
|
||||
public int Price;
|
||||
public Action ClickAction;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e0ca3c28302f4300970de610a06545b5
|
||||
timeCreated: 1735813881
|
||||
@@ -0,0 +1,16 @@
|
||||
|
||||
using Spine.Unity;
|
||||
|
||||
public enum HomePropType
|
||||
{
|
||||
Gold,
|
||||
Remove,
|
||||
Undo,
|
||||
Refresh,
|
||||
}
|
||||
|
||||
public class HonePropData
|
||||
{
|
||||
public SkeletonAnimation SkeletonAnimation;
|
||||
public HomePropType PropType;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 51d25b1eaeeb4a98b5443d3833f7f7bb
|
||||
timeCreated: 1735199076
|
||||
@@ -0,0 +1,16 @@
|
||||
// using SGModule.Common.Key;
|
||||
// using SGModule.DataStorage;
|
||||
|
||||
// public partial class ItemKeys
|
||||
// {
|
||||
|
||||
// /// <summary>
|
||||
// /// 看广告次数
|
||||
// /// </summary>
|
||||
// public static readonly ItemKey AdWatchCount = KeyRegistry.Register<ItemKey>("AdWatchCount");
|
||||
|
||||
// /// <summary>
|
||||
// /// 可摇骰子次数
|
||||
// /// </summary>
|
||||
// public static readonly ItemKey AvailableDiceRolls = KeyRegistry.Register<ItemKey>("AvailableDiceRolls");
|
||||
// }
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7c8ab2150e364e249c04081c10a6df74
|
||||
timeCreated: 1733905254
|
||||
@@ -0,0 +1,77 @@
|
||||
//
|
||||
// // using FGUI.ZM_Common_01;
|
||||
// using SGModule.Common.Base;
|
||||
// using UnityEngine;
|
||||
//
|
||||
// public class TopBarManager : SingletonMonoBehaviour<TopBarManager>
|
||||
// {
|
||||
// private TopBar _topBar;
|
||||
//
|
||||
//
|
||||
// public void RegisterTopBar(TopBar topBar)
|
||||
// {
|
||||
// _topBar = topBar;
|
||||
// }
|
||||
//
|
||||
// public void RemoveTopBar()
|
||||
// {
|
||||
// _topBar = null;
|
||||
// }
|
||||
//
|
||||
// public void ShowTopBar()
|
||||
// {
|
||||
// if (_topBar == null)
|
||||
// {
|
||||
// Debug.LogWarning($"ShowTopBar 没有可控制的TopBar!!!");
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// _topBar.visible = true;
|
||||
// }
|
||||
//
|
||||
// public void HideTopBar()
|
||||
// {
|
||||
// if (_topBar == null)
|
||||
// {
|
||||
// Debug.LogWarning($"HideTopBar 没有可控制的TopBar!!!");
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// _topBar.visible = false;
|
||||
// }
|
||||
//
|
||||
// /// <summary>
|
||||
// /// 设置顶部栏状态
|
||||
// /// </summary>
|
||||
// /// <param name="state">状态(0:都展示 1:展示头像与金币栏 2:金币栏 3:头像)</param>
|
||||
// public int SetTopBarState(int state)
|
||||
// {
|
||||
// if (_topBar == null)
|
||||
// {
|
||||
// Debug.LogWarning($"SetTopBarState 没有可控制的TopBar!!!");
|
||||
// return -1;
|
||||
// }
|
||||
//
|
||||
// if (state < 0)
|
||||
// {
|
||||
// return -1;
|
||||
// }
|
||||
//
|
||||
// var curState = _topBar.State.selectedIndex;
|
||||
// _topBar.visible = true;
|
||||
// _topBar.State.selectedIndex = state;
|
||||
// return curState;
|
||||
// }
|
||||
//
|
||||
// public com_gold GetGoldBar()
|
||||
// {
|
||||
// if (_topBar == null)
|
||||
// {
|
||||
// Debug.LogWarning($"SetTopBarState 没有可控制的TopBar!!!");
|
||||
// return null;
|
||||
// }
|
||||
//
|
||||
// return _topBar.btn_gold;
|
||||
// }
|
||||
//
|
||||
// }
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 979f25ba067c4af2a4f1b8a6e21f4b83
|
||||
timeCreated: 1735205051
|
||||
Reference in New Issue
Block a user