case5
This commit is contained in:
@@ -44,15 +44,20 @@ head:
|
||||
<img src="/image/studycase4/onscreen.png" data-fancybox="gallery"/>
|
||||
|
||||
## 5.勇者行迹录-章节任务
|
||||
### 创建studycase4
|
||||
### 5.1 创建StudyCase4
|
||||
- 复制场景和脚本改名为studycase4
|
||||
- 修改控制器和道具的命名空间
|
||||
|
||||
### IngameDebugConsole
|
||||
### 5.2 IngameDebugConsole
|
||||
- 把IngameDebugConsole预制体拖入场景
|
||||
|
||||
<img src="/image/studycase4/debug.png" data-fancybox="gallery"/>
|
||||
|
||||
- 在Resources文件夹下创建材质Line,Shader选择Sprite-Unlit-Default
|
||||
|
||||
<img src="/image/studycase4/创建材质Line,设置shader为Sprite-Unlit-Default.png" data-fancybox="gallery"/>
|
||||
|
||||
### 5.3 虚拟摇杆创建
|
||||
- 全选mobile-controls-1下的Texture
|
||||
|
||||
<img src="/image/studycase4/全选mobile-controls-1下的Texture.png" data-fancybox="gallery"/>
|
||||
@@ -93,6 +98,7 @@ head:
|
||||
|
||||
<img src="/image/studycase4/配置虚拟相机输入.gif" data-fancybox="gallery"/>
|
||||
|
||||
### 5.4 Player脚本和设置
|
||||
- 修改`Assets\Scripts\studycase4` 下脚本 `ThirdCharacterController.cs`
|
||||
```csharp
|
||||
using UnityEngine;
|
||||
@@ -275,6 +281,7 @@ namespace StudyCase4
|
||||
}
|
||||
}
|
||||
```
|
||||
### 5.5打包并测试
|
||||
- 玩家移除case3的脚本,挂载case4脚本
|
||||
- BuildSettings切换到Android平台
|
||||
|
||||
|
||||
Reference in New Issue
Block a user