OldBlueWater/BlueWater/Assets/Low Poly Modular Terrain Pack/Bonus_Assets/Scripts/ModularTerrainCameraControl.cs
2023-08-14 01:13:03 +09:00

15 lines
429 B
C#

using UnityEngine;
using System.Collections;
public class ModularTerrainCameraControl : MonoBehaviour {
//Range for min/max values of variable
[Range(-100f, 100f)]
public float cameraMoveSpeed_x, cameraMoveSpeed_y, cameraMoveSpeed_z;
// Camera Movement
void Update () {
gameObject.transform.Translate (cameraMoveSpeed_x * Time.deltaTime, cameraMoveSpeed_y * Time.deltaTime, cameraMoveSpeed_z * Time.deltaTime);
}
}