Conversation
- BlockInteractionSystem: 方块放置/破坏核心逻辑 - BlockHighlight: 高亮显示瞄准的方块 - SimpleInventory: 简单背包系统,支持9个槽位 - 更新 PlayerController 集成方块交互 - 修改天气快捷键避免与移动键冲突 (S->T, D->N) 操作说明: - 鼠标左键: 破坏方块 - 鼠标右键: 放置方块 - 数字键1-9/滚轮: 切换背包槽位
- 需要长按左键0.5秒才能破坏方块 - 方块会显示红色进度覆盖层 - 切换目标或松开按键会重置进度 - 防止误触破坏方块
- 表面层:地形颜色(草地/沙子等) - 第2层:泥土 - 第3-4层:石头 - 可通过 terrainDepth 参数调整
- 地形生成优化:只生成暴露在外的方块,大幅减少方块数量 - 破坏方块时自动生成下方隐藏的方块 - 支持 terrainDepth=100 等大深度值而不卡顿
- 移除复杂的可见性优化,改为直接生成完整深度 - 地形厚度设为5层,平衡性能和可玩性 - 简化方块揭露逻辑(方块已全部预生成)
- 重构 BlockInteractionSystem 和 CubeGenerator - 优化 AnimalManager 代码结构 - 增强 BlockHighlight 功能 - 新增 World 系统和 Shaders 资源 - 更新场景配置
- 大幅扩展 Animal.cs 功能 - 优化 AnimalManager.cs 逻辑
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
add interaction feature