mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-22 17:45:16 +00:00
dcb2a71b98
needs fixes for some types
20 lines
No EOL
438 B
C#
20 lines
No EOL
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];
|
|
}
|
|
}
|
|
} |