TARGET TODO
This commit is contained in:
23
Assets/Scripts/BulletMovement.cs
Normal file
23
Assets/Scripts/BulletMovement.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
public class BulletMovement : MonoBehaviour
|
||||
{
|
||||
public float moveSpeed = 10;
|
||||
|
||||
// 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.Translate(Vector2.up * (Time.deltaTime * moveSpeed));
|
||||
}
|
||||
|
||||
private void OnTriggerEnter2D(Collider2D other)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user