18 lines
383 B
C#
18 lines
383 B
C#
using UnityEngine;
|
|
|
|
public class GameMovement : MonoBehaviour
|
|
{
|
|
public float cameraSpeed;
|
|
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
transform.position += new Vector3(cameraSpeed * Time.deltaTime, 0, 0);
|
|
}
|
|
}
|