15 lines
271 B
C#
15 lines
271 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class Bullet : MonoBehaviour
|
||
|
{
|
||
|
private Rigidbody rb;
|
||
|
|
||
|
void Start()
|
||
|
{
|
||
|
rb = GetComponent<Rigidbody>();
|
||
|
rb.AddRelativeForce(Vector3.forward * 800.0f);
|
||
|
}
|
||
|
}
|