5a59d8e14f
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>
28 lines
778 B
C#
28 lines
778 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class TeaCupController : MonoBehaviour
|
|
{
|
|
public GameObject platform;
|
|
public GameObject teaPot;
|
|
public Transform[] teaCups;
|
|
|
|
[Range(-60,60)]
|
|
public float rideSpeed = 15.0f;
|
|
void Update()
|
|
{
|
|
//main platform rotation speed
|
|
platform.transform.Rotate(Vector3.up * rideSpeed * Time.deltaTime);
|
|
|
|
//centre ornament (teapot) rotation speed
|
|
teaPot.transform.Rotate(Vector3.down * (rideSpeed*0.5f) * Time.deltaTime);
|
|
|
|
//tea cup rotation's in relation to set ride speed
|
|
foreach (Transform teacup in teaCups)
|
|
{
|
|
teacup.Rotate(Vector3.up * (rideSpeed * 1.5f ) * Time.deltaTime);
|
|
}
|
|
}
|
|
}
|