Files
Project-M/Assets/Synty/PolygonHorrorCarnival/Scripts/CarouselController.cs
T
kronic 5a59d8e14f Add Synty asset packs (enemies + environment/FX/UI) via Git LFS
14 newly-imported Synty Polygon packs (~2.46 GB; FBX/PNG/textures stored in
Git LFS per .gitattributes). Enemy-grade characters: Werewolf, Kaiju,
FantasyHeroCharacters, Vikings, Western, HorrorCarnival, Dog. Environment:
Nature, NatureBiomes, PNB_Core, FantasyKingdom. UI/icons: Icons,
InterfaceCore, InterfaceSciFiSoldierHUD.

Werewolf + Kaiju back the DR-023 animated enemies; the rest are cataloged
for future work in Docs/Vault/06_Roadmap/Synty_Asset_Inventory.md.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-06 23:28:47 -07:00

30 lines
676 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CarouselController : MonoBehaviour
{
[Header("Ride Speed")]
[Range(-30, 30)]
public float rideSpeed = -12.0f;
[Header("Base Platform")]
public GameObject Platform;
[Header("Cranks")]
public Transform[] Cranks;
void Update()
{
//rotate main platform ride
Platform.transform.Rotate(Vector3.up * rideSpeed * Time.deltaTime);
//rotate cranks based on ride speed
foreach (Transform crank in Cranks)
{
crank.Rotate(Vector3.forward * (rideSpeed*1.25f) * Time.deltaTime * 10);
}
}
}