Hit Detection
This commit is contained in:
parent
1992428a14
commit
871c978301
225 changed files with 210834 additions and 237 deletions
11
Assets/Scripts/UnityHelpers.cs
Normal file
11
Assets/Scripts/UnityHelpers.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class UnityHelpers
|
||||
{
|
||||
public static T LoadAsset<T>(string path) where T : Object
|
||||
{
|
||||
return Resources.Load<T>(path.Substring("Assets/Resources/".Length).Split('.')[0]);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue