微信登录

Tools - UnityTools.cs - 坐标数据工具

  1. using System;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using System.Text;
  5. public static class UnityTools
  6. {
  7. public static Vector3 ParseVector3(string str)
  8. {
  9. string[] strs = str.Split(',');
  10. float x = float.Parse(strs[0]);
  11. float y = float.Parse(strs[1]);
  12. float z = float.Parse(strs[2]);
  13. return new Vector3(x, y, z);
  14. }
  15. }
Tools - UnityTools.cs - 坐标数据工具