unity vector2 code example
Example 1: unity normalize vector2
Vector2 pos;
Vector2 dir = pos.normalized;
Example 2: vector2.zero unity
//Shorthand for writing
Vector2(0,0);
Vector2 pos;
Vector2 dir = pos.normalized;
//Shorthand for writing
Vector2(0,0);