OldBlueWater/BlueWater/Assets/Low Poly Modular Terrain Pack/Bonus_Assets/Scripts/ModularTerrainCameraControl.cs

15 lines
429 B
C#
Raw Normal View History

2023-08-13 16:13:03 +00:00
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);
}
}