HeavenStudio/Assets/Scripts/Datamodel.cs
minenice55 f209b2fd17 start implementation of new format
needs fixes for some types
2022-08-21 19:46:45 -04:00

20 lines
438 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace HeavenStudio
{
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];
}
}
}