Add Unity3D projects
This commit is contained in:
@ -0,0 +1,20 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Bullet : MonoBehaviour {
|
||||
|
||||
// inspector settings
|
||||
public Rigidbody rigid;
|
||||
//
|
||||
|
||||
// Use this for initialization
|
||||
void Start () {
|
||||
rigid.velocity = transform.forward * 30f;
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update () {
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user