HeavenStudio/Assets/Scripts/Datamodel.cs

20 lines
438 B
C#
Raw Normal View History

2022-01-08 16:42:48 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
2022-03-14 14:21:05 +00:00
namespace HeavenStudio
2022-01-08 16:42:48 +00:00
{
public static class Datamodel
{
public static string Split(this string s, int index)
{
return s.Split('/')[index];
}
public static string GetExtension(this string s)
{
string[] split = s.Split('.');
return split[split.Length - 1];
}
2022-01-08 16:42:48 +00:00
}
}