示例#1
0
 // Start is called before the first frame update
 void Start()
 {
     settings = GetComponent <BulletSettings>();
     Speed    = settings.Speed;
 }
示例#2
0
 // Start is called before the first frame update
 void Start()
 {
     settings = GetComponent<BulletSettings>();
     timeToLive = settings.TimeToLive;
     Invoke("DestroyBullet", timeToLive);
 }
示例#3
0
 // Start is called before the first frame update
 void Start()
 {
     settings  = GetComponent <BulletSettings>();
     collision = GetComponent <JCollider>();
     collision.SetOnJCollisionEnterHandler(CollisionHandler);
 }