10 lines
245 B
C#
10 lines
245 B
C#
using UnityEngine;
|
|
|
|
namespace Code.Gameplay.Level
|
|
{
|
|
public class MovingObstacle : MonoBehaviour
|
|
{
|
|
public float speed = 5f;
|
|
private void Update() => transform.Translate(Vector3.forward * (speed * Time.deltaTime));
|
|
}
|
|
} |