Nextrek
Diff Revisions
139
vs
141
for /3DSpace/Assets/Custum/Scripts/AllyShip.cs
|
@@ -131,9 +131,10 @@ |
131 |
131 |
|
// Calculate where the position is in world space for the mount point |
132 |
132 |
|
Vector3 _pos = transform.position + transform.right * _wmp.x + transform.up * _wmp.y + transform.forward * _wmp.z; |
133 |
133 |
|
// Instantiate the laser prefab at position with the spaceships rotation |
134 |
|
- |
Transform _laserShot = (Transform) Instantiate(laserShotPrefab[weaponType], _pos, transform.rotation); |
135 |
134 |
|
// Specify which transform it was that fired this round so we can ignore it for collision/hit |
136 |
|
- |
_laserShot.GetComponent<SU_LaserShot>().firedBy = transform; |
|
135 |
+ |
//Transform _laserShot = (Transform) Instantiate(laserShotPrefab[weaponType], _pos, transform.rotation); |
|
136 |
+ |
//_laserShot.GetComponent<SU_LaserShot>().firedBy = transform; |
|
137 |
+ |
WeaponFireUtils.FireLaser(laserShotPrefab[weaponType], _pos, this.transform.rotation, this.gameObject, GameManager.ENEMY_TAG); |
137 |
138 |
|
} |
138 |
139 |
|
if (soundEffectFire[weaponType] != null) |
139 |
140 |
|
{ |