Exemplo n.º 1
0
 public void FireLaser()
 {
     if (laserCooldown.IsOnCooldown() == false)
     {
         laserCooldown.Start();
         GameObject laser = Instantiate(bullet) as GameObject;
         laser.transform.position = barrel.transform.position;
         laser.GetComponent <LaserMovement>().MoveDirection = GetFireDirection();
     }
 }