using UnityEngine;
using System.Collections;
public class BulletCtrl : MonoBehaviour {
public float Speed = 10.0f;
// Use this for initialization
void Start () {
rigidbody.AddForce(transform.forward*Speed);
// 힘을 넣는.addForce...
}
}
'유니티3D > 예제' 카테고리의 다른 글
MyGizmo.cs (0) | 2013.08.06 |
---|---|
Spark.cs (0) | 2013.08.06 |
PlayerCtrl_V2 (0) | 2013.07.25 |
PlayerCrtl (0) | 2013.07.25 |
PlayerCtrl_소스 (0) | 2013.07.24 |