ShotBehavior.cs 279 B

12345678910111213141516
  1. using UnityEngine;
  2. using System.Collections;
  3. public class ShotBehavior : MonoBehaviour {
  4. // Use this for initialization
  5. void Start () {
  6. }
  7. // Update is called once per frame
  8. void Update () {
  9. transform.position += transform.forward * Time.deltaTime * 1000f;
  10. }
  11. }