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>
32 lines
703 B
C#
32 lines
703 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class SimpleTranslate : MonoBehaviour
|
|
{
|
|
public bool moveX;
|
|
public float moveXSpeed = 2f;
|
|
public bool moveY;
|
|
public float moveYSpeed = 2f;
|
|
public bool moveZ;
|
|
public float moveZSpeed = 2f;
|
|
|
|
void Update()
|
|
{
|
|
if (moveX == true)
|
|
{
|
|
transform.Translate(Vector3.left * Time.deltaTime * moveXSpeed);
|
|
}
|
|
if (moveY == true)
|
|
{
|
|
transform.Translate(Vector3.up * Time.deltaTime * moveYSpeed);
|
|
}
|
|
|
|
if (moveZ == true)
|
|
{
|
|
transform.Translate(Vector3.back * Time.deltaTime * moveZSpeed);
|
|
}
|
|
}
|
|
}
|
|
|