Advertisement
Guest User

Untitled

a guest
Jan 19th, 2020
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.19 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public static class ExtensionMethods
  5. {
  6.  public static Vector2 toVector2(this Vector3 vec3)
  7.  {
  8.   return new Vector2(vec3.x, vec3.y);
  9.  }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement