Added Unity assets and settings, including animation scripts, audio manager configuration, TextMesh Pro styles, and default volume profiles.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace DefaultNamespace
|
||||
{
|
||||
public class Enemy : MonoBehaviour
|
||||
{
|
||||
private float _speed = 0.0f;
|
||||
|
||||
public float Acceleration { get; set; } = 0.0f;
|
||||
|
||||
private void FixedUpdate()
|
||||
{
|
||||
_speed += Acceleration * Time.fixedDeltaTime;
|
||||
transform.position += transform.forward * _speed * Time.fixedDeltaTime;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user