Help with defintions in my code (CS1061 AND CS0103)
I need help implementing some code that I found online. When I wrote the code in I got two error messages.
(21,40): error CS1061: 'Transform' does not contain a definition for 'postion' and no accessible extension method 'postion' accepting a first argument of type 'Transform' could be found (are you missing a using directive or an assembly reference?)
(22,9): error CS0103: The name 'directon' does not exist in the current context
I am very bad at code and cannot find the issue, could I get some help please?
The video if it helps: https://www.youtube.com/watch?v=t_-kTapjfhM
Dapper Dino
YouTube
How to make Homing Projectiles for your C# Unity Game
Help to support the channel if you are feeling super kind: https://www.patreon.com/dapperdino
Join our Discord: https://discord.gg/sn9xXK4
https://www.youtube.com/watch?v=raQ3iHhE_Kk
https://www.youtube.com/watch?v=6vmRwLYWNRo
In this video I show you how to make homing projectiles for your C# Unity Game.
-------------------------------------...
2 Replies
'Transform' does not contain a definition for 'postion' and no accessible extension method 'postion'
Probably because it's "position", not "postion"
The name 'directon' does not exist in the current context
Probably because it's "direction", not "directon"
Also, they might be capitalized. C# is case-sensitive, so Position
and position
would be two different thingsthank you so much