Exemplo n.º 1
0
 public void CreateBullet(Vector3 target, Vector3 source)
 {
     bulletIndex = bulletManager.GetBulletIndex();
     if (bulletIndex == -1)
     {
         return;
     }
     bullet = bulletManager.bullets[bulletIndex].GetComponent <BulletLine>();
     bulletManager.freeBullets[bulletIndex]    = false;
     bullet.GetComponent <Renderer>().material = shooterObject.GetComponent <Renderer>().sharedMaterial;
     bullet.Show(target, source);
     StartCoroutine(BulletShowTimer());
 }