Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
C#
unity 2d enemy field of view
adityasrivastav
Programming language:
C#
2021-04-25 02:25:03
0
Q:
unity 2d enemy field of view
Toby Y.
Code:
C#
2021-04-05 12:42:34
if (Vector3.Distance(playerPosition, EnemyPosition) < 22.5) { Debug.Log("I'm seeing the player"); }
0
Tags
unity
field
Related
2d look at unity
unity how to check if a game object if with in a radius
unity face direction of movement
unity how to check object position
unity 2d horizontal movement help
unity 2d controler
player not following slide object unity 2d
unity 2d platformer movement script c#
2D follow ia unity 2D with agrorange
camera to follow player unity
New to Communities?
Join the community