Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. public Vector3 stringToVec(string s) {
  2. string[] temp = s.Substring (1, s.Length-2).Split (',');
  3. return new Vector3 (float.Parse(temp[0]), float.Parse(temp[1]), float.Parse(temp[2]));
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement