Skip to content

Commit

Permalink
temp commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bozmir committed Dec 20, 2024
1 parent a9c6e74 commit 87a0565
Show file tree
Hide file tree
Showing 14 changed files with 278 additions and 5 deletions.
24 changes: 20 additions & 4 deletions Assets/Scenes/Main.unity

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion Assets/Scripts/KerstSpecial/RaceController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ public class RaceController : MonoBehaviour
private GameObject[] zoneObjects = new GameObject[4];
private GameObject finishObject;
public GameObject scoreBoard;

public List<AudioClip> skateSounds = new List<AudioClip>();

private void Start()
{
Expand Down Expand Up @@ -292,7 +294,11 @@ private void Update()
playerSpeed = 200;
playerOffRoadSpeed = 200;
}

if (IsDebugOn && Keyboard.current[Key.PageUp].wasPressedThisFrame)
{
player.GetComponent<AudioSource>().enabled = false;
}

if (routeCoords == null || !isReadyForStart)
return;

Expand Down
5 changes: 5 additions & 0 deletions Assets/Scripts/KerstSpecial/WorldAsset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public virtual void Start()
WorldTransform wt = prefab.AddComponent<WorldTransform>();
GameObjectWorldTransformShifter shifter = prefab.AddComponent<GameObjectWorldTransformShifter>();
wt.SetShifter(shifter);
wt.onPostShift.AddListener((a, b) => {
Vector3 pos = startCoord.ToUnity();
startPosition = new Vector3(pos.x, height, pos.z);
OnSetStartPosition(startPosition);
});
prefab.transform.position = transform.position;
prefab.transform.rotation = Quaternion.Euler(XRotation, YRotation, 0);
prefab.transform.localScale = Vector3.one * size;
Expand Down
116 changes: 116 additions & 0 deletions Assets/Scripts/KerstSpecial/kerstAssets.prefab

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Assets/Scripts/KerstSpecial/skate1.mp3
Git LFS file not shown
23 changes: 23 additions & 0 deletions Assets/Scripts/KerstSpecial/skate1.mp3.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Assets/Scripts/KerstSpecial/skate2.mp3
Git LFS file not shown
23 changes: 23 additions & 0 deletions Assets/Scripts/KerstSpecial/skate2.mp3.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Assets/Scripts/KerstSpecial/skate3.mp3
Git LFS file not shown
23 changes: 23 additions & 0 deletions Assets/Scripts/KerstSpecial/skate3.mp3.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Assets/Scripts/KerstSpecial/skate4.mp3
Git LFS file not shown
23 changes: 23 additions & 0 deletions Assets/Scripts/KerstSpecial/skate4.mp3.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Assets/Scripts/KerstSpecial/skate5.mp3
Git LFS file not shown
23 changes: 23 additions & 0 deletions Assets/Scripts/KerstSpecial/skate5.mp3.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 87a0565

Please sign in to comment.