浏览代码

Cleaned up some TODOs and updated cinemachine

/demo-work
André McGrail 5 年前
当前提交
bdfd5e90
共有 3 个文件被更改,包括 7 次插入7 次删除
  1. 8
      Assets/Scripts/Environment/WindsurferManager.cs
  2. 4
      Assets/Scripts/GameSystem/RaceManager.cs
  3. 2
      Packages/manifest.json

8
Assets/Scripts/Environment/WindsurferManager.cs


_heights = new float3[surfers.Length];
_normals = new float3[surfers.Length];
_smoothPositions = new Vector3[surfers.Length];
for (var i = 0; i < surfers.Length; i++)
{
_smoothPositions[i] = surfers[i].position;

{
_points.Dispose();
}
// Update is called once per frame - TODO - need to validate logic here (not smooth at all in demo)
// TODO - need to validate logic here (not smooth at all in demo)
for (int i = 0; i < surfers.Length; i++)
{
_smoothPositions[i] = surfers[i].position;

4
Assets/Scripts/GameSystem/RaceManager.cs


default:
throw new ArgumentOutOfRangeException();
}
Instance.StartCoroutine(BeginRace()); // TODO need to make much better with race intro etc
Instance.StartCoroutine(BeginRace());
}
private static void UnloadRace(Scene scene)

{
case GameType.Singleplayer:
var b = new BoatData();
b.human = false; //true; // TODO for testing
b.human = true; // single player is human
RaceData.boats.Add(b); // add player boat
GenerateRandomBoats(RaceData.boatCount - 1); // add random AI
break;

2
Packages/manifest.json


"com.unity.addressables": "1.1.10",
"com.unity.build-report-inspector": "0.1.2-preview",
"com.unity.burst": "1.1.2",
"com.unity.cinemachine": "2.3.4",
"com.unity.cinemachine": "2.4.0",
"com.unity.ide.rider": "1.1.4",
"com.unity.ide.vscode": "1.1.3",
"com.unity.inputsystem": "1.0.0-preview.3",

正在加载...
取消
保存