Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Weapons : MonoBehaviour
- {
- float[] Firingcaclulator = new float[15] { 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10 };
- Quaternion EmptyRotation = new Quaternion();
- public void Lasers(Vector3 PositionofShooter, GameObject LaserGameObject, int LevelofWeapon)
- {
- Debug.Log("Lasers Initiated");
- if (Firingcaclulator[0] >= 10)
- {
- Instantiate(LaserGameObject, PositionofShooter, EmptyRotation);
- Firingcaclulator[0] = 0;
- }
- Firingcaclulator[0] += ((5 + 1 * 5) * Time.deltaTime);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement