Browse Source

fixed rotate converoy belt section

master
Joshua Reason 5 years ago
parent
commit
ae12fa33c8
4 changed files with 8 additions and 4 deletions
  1. +1
    -1
      Assets/Prefabs/Traps/Turntable L with Cube.prefab
  2. +1
    -1
      Assets/Prefabs/Traps/Turntable R with Cube.prefab
  3. +5
    -1
      Assets/Scripts/Map Generation/MapManager.cs
  4. +1
    -1
      ProjectSettings/EditorBuildSettings.asset

+ 1
- 1
Assets/Prefabs/Traps/Turntable L with Cube.prefab View File

@ -106,7 +106,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 6692f0c965cb4fa41b616ba0991653a3, type: 3}
m_Name:
m_EditorClassIdentifier:
VisualOffset: {x: 0, y: 0, z: 0}
VisualOffset: {x: 0, y: 0.5, z: 0}
is_Walkable: 1
isWater: 0
isPit: 0

+ 1
- 1
Assets/Prefabs/Traps/Turntable R with Cube.prefab View File

@ -106,7 +106,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 6692f0c965cb4fa41b616ba0991653a3, type: 3}
m_Name:
m_EditorClassIdentifier:
VisualOffset: {x: 0, y: 0, z: 0}
VisualOffset: {x: 0, y: 0.5, z: 0}
is_Walkable: 1
isWater: 0
isPit: 0

+ 5
- 1
Assets/Scripts/Map Generation/MapManager.cs View File

@ -157,7 +157,11 @@ public class MapManager : ScriptableObject
}
}
//Having generated our list, we choose a random segment from it
MapSection nextSection = validSections[(int)Random.Range(0.0f, (float)validSections.Count)];
int selectedIndex = Random.Range(0, validSections.Count);
Debug.Log("<b>Validmap sections: </b>" + validSections.Count);
Debug.Log("<b>Selected section: </b>" + selectedIndex);
MapSection nextSection = validSections[selectedIndex];
addSection(nextSection);
}

+ 1
- 1
ProjectSettings/EditorBuildSettings.asset View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a72b13def7e59eb6657bef59ecf1d9070ed89092b177a371d09e6b99b8e0f05c
oid sha256:89626e954c478d28ed17bbfc46452669c9cb4d5ced3c8e3e886ed6191cf54b15
size 1383

Loading…
Cancel
Save