Skip to content
Snippets Groups Projects
Commit 6f18daef authored by Fahrian Afdholi's avatar Fahrian Afdholi
Browse files

refactor

parent 2a0091b1
No related merge requests found
......@@ -93,29 +93,6 @@ public class ShotgunController : MonoBehaviour
lineRenderer[i].SetPosition(0, transform.position);
}
// if (Physics.Raycast(cam.transform.position, cam.transform.forward, out var hit, range))
// {
// /*Debug.Log(hit.transform.name);*/
// for (int i = 0;i < lineRenderer.Count; i++)
// {
// float xVal = Random.Range(-5f, 5f);
// float yVal = Random.Range(-5f, 5f);
// float zVal = Random.Range(-5f, 5f);
// Vector3 positionShoot = hit.point + new Vector3(xVal, yVal, zVal);
// // hit.collider.Ge
//
// lineRenderer[i].SetPosition(1, positionShoot);
// // hit.point = positionShoot;
//
// // hit.collider.GetComponent<EnemyManager>().TakeDamage(demage, positionShoot);
// }
//
// // TODO: hit damage to object
//
//
// }
foreach (var line in lineRenderer)
{
ray.origin = cam.transform.position;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment