浏览代码

[Bot] Automated dotnet-format update

/devlogs-3-input
rcarag 4 年前
当前提交
76ffdd4f
共有 4 个文件被更改,包括 7 次插入6 次删除
  1. 2
      UOP1_Project/Assets/Scripts/RuntimeAnchors/PathAnchor.cs
  2. 6
      UOP1_Project/Assets/Scripts/SceneManagement/LocationEntrance.cs
  3. 3
      UOP1_Project/Assets/Scripts/SceneManagement/LocationExit.cs
  4. 2
      UOP1_Project/Assets/Scripts/SpawnSystem.cs

2
UOP1_Project/Assets/Scripts/RuntimeAnchors/PathAnchor.cs


{
[HideInInspector] public bool isSet = false; // Any script can check if the transform is null before using it, by just checking this bool
private PathSO _Path;
private PathSO _Path;
public PathSO Path
{
get { return _Path; }

6
UOP1_Project/Assets/Scripts/SceneManagement/LocationEntrance.cs


public class LocationEntrance : MonoBehaviour
{
[Header("Asset References")]
[SerializeField] private PathSO _entrancePath;
[Header("Asset References")]
[SerializeField] private PathSO _entrancePath;
public PathSO EntrancePath => _entrancePath;
public PathSO EntrancePath => _entrancePath;
}

3
UOP1_Project/Assets/Scripts/SceneManagement/LocationExit.cs


}
}
private void UpdatePathTaken() {
private void UpdatePathTaken()
{
if (_pathTaken != null)
_pathTaken.Path = _exitPath;
}

2
UOP1_Project/Assets/Scripts/SpawnSystem.cs


if (pathTaken == null)
return _defaultSpawnIndex;
int index = Array.FindIndex(_spawnLocations, element =>
int index = Array.FindIndex(_spawnLocations, element =>
element?.GetComponent<LocationEntrance>()?.EntrancePath == pathTaken
);

正在加载...
取消
保存