I see another issue in your code. You are dealing with the wrong Time. command. You have to change the following lines:
if(Time.deltaTime > lastFire + fireDelay) to if(Time.time > lastFire + fireDelay)
and lastFire = Time.deltaTime; to lastFire = Time.time;
Obel_X
1
Posts
1
Following
A member registered Apr 02, 2019
Recent community posts
The GameDev.tv Game Jam 2022 - Free Course For All Submissions! community · Posted in Trying to do directional shooting