obsidian/笔记文件/2.笔记/slot业务逻辑 临时记录_第一章.md
2025-05-10 18:40:04 +08:00

193 lines
4.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#灵感
待修复链接:
https://inspire.sg.larksuite.com/base/XDR2bO9UCalzNPsSGAhl7Acjglf?table=tblNSDJrGa8mz8km&view=vewqPiSXAQ
![[Pasted image 20250115163753.png]]
![[Pasted image 20250115163705.png]]
![[Pasted image 20250118114128.png]]
![[Pasted image 20250118114628.png]]
![[Pasted image 20250118141400.png]]
![[Pasted image 20250118161534.png]]
创建单个item的逻辑
![[Pasted image 20250118202943.png]]
拿单个Item模板类的方法
![[Pasted image 20250118203318.png]]
lua逻辑入口GameMain
![[Pasted image 20250421115020.png]]
这里是打开游戏,就自动进局内的入口
![[Pasted image 20250119195857.png]]
核心驱动,进游戏,是这里
![[Pasted image 20250119195959.png]]
用这几个主题
![[Pasted image 20250418172858.png]]
主题所在路径:
```
Assets\ZSlotKing\MiniGame\Themes\
```
UI替换相关
![[Pasted image 20250421135455.png]]
大厅弹窗,断点调用逻辑参考:
![[Pasted image 20250421135634.png]]
举例说明:
![[Pasted image 20250421141339.png]]
对应的窗体类型,是这个:
![[Pasted image 20250421141414.png]]
对应的弹窗UI是这个
![[Pasted image 20250421141702.png]]
如果要屏蔽UI可以参考从这个角度出发处理。
单活动的修改处理:
![[Pasted image 20250421150826.png]]
![[Pasted image 20250421172749.png]]
![[Pasted image 20250421172809.png]]
![[Pasted image 20250421172859.png]]
具体进入,哪个主题,是这个入口来着,也需要同步修改一下
![[Pasted image 20250427102024.png]]
theme8主题需要加到xasset加上后还会有这个逻辑错误待解决的已处理
![[Pasted image 20250422145955.png]]
解决方式:
需要从slot拿对应的Group配置文件
![[Pasted image 20250422173821.png]]
然后在Build里面也加一下这个Group
![[Pasted image 20250422175551.png]]
然后,就可以正常进游戏了
![[Pasted image 20250422175740.png]]
其他同理,需要这样设置;
Theme7的话这样设置是可以正常进游戏但是无法确定结果
![[Pasted image 20250422183409.png]]
基本很多默认的逻辑报错都是result结果的
![[Pasted image 20250423134138.png]]
![[Pasted image 20250423134808.png]]
这里是,大厅相关的图标,美术资源
![[Pasted image 20250427093250.png]]
这里是控制大厅数量个数的逻辑入口例如现在默认设置为一个count
![[Pasted image 20250427094616.png]]
同理,这里是拖曳的时候,获取到的
![[Pasted image 20250427101638.png]]
获取到之后,就是在滑动的时候,也创建一个新的;
如果不想自动创建新的,注释这个就好
![[Pasted image 20250427101809.png]]
最开始的更新窗体
![[Pasted image 20250427102626.png]]
是由这行代码控制的,注释就直接隐藏了
![[Pasted image 20250427102614.png]]
打印的入口,直接`log`就可以了
![[Pasted image 20250427103728.png]]
这里可以控制,具体页面的索引
![[Pasted image 20250427104302.png]]
当前打开 特定主题的列表,是在这里设定
![[Pasted image 20250430163026.png]]
购买按钮,反转的话,也临时记录一下,这俩按钮反转
![[Pasted image 20250508152353.png]]
外部也是可以调用TopOnBar的返回大厅按钮
![[Pasted image 20250508161217.png]]
这里是等级更新的时候,会隐藏
![[Pasted image 20250508161325.png]]
这俩都临时改成true吧不要隐藏了
![[Pasted image 20250508161421.png]]
tolua如果需要加一些自定义的CSharp方法是可以在`CustomSettings`这个脚本里,去加,例如加了这俩
![[Pasted image 20250509105407.png]]
需要注意的是最好不要放在namespace里面不然在lua里面调用相关会出现nil空指针等报错
![[Pasted image 20250509105511.png]]
![[Pasted image 20250509105726.png]]
最好,不要有任何命名空间引用吧:
![[Pasted image 20250509105757.png]]
生成lua逻辑直接点这个按钮就好
![[Pasted image 20250508173711.png]]
如果谷歌sdk相关没有正确配置会有这个提示
![[Pasted image 20250508181109.png]]
谷歌相关组件官方sdk地址https://github.com/playgameservices/play-games-plugin-for-unity/releases
字段名称修改一下:
![[img_v3_02m5_cc537595-ff4a-42f4-bf9e-1af456d8d4hu.jpg]]
![[Pasted image 20250510161224.png]]