Пример #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);
 }