- Home /
Question by
SamLikeABoss · Sep 20, 2017 at 04:26 AM ·
raycasting
Shoot is a type but is used like a variable? help me ples
What did i do wrong?
help1.jpg
(37.2 kB)
Comment
'Shoot' is the name of your class, 'shoot' is the name of your method, which is what you want to call. Capitalization is important, and 'shoot' and 'Shoot' are 2 different things.
if (Input.GetButtonDown("Fire1"))
{
shoot();
}
Your answer
Follow this Question
Related Questions
Offsetting a Mouse Point Raycast? 1 Answer
Help with rotating my collider and ray origins 0 Answers
Best way to handle melle attacks in a fast paced 2D game 0 Answers
Raycast ignore layers except 1 Answer
FOV that brings gameObjects close 2 Answers