First Flight
Added MPL license headers SectorRenderer renders entities in sector, manages particle systems for ship thrusters Thrusters apply torque based on orientation and position relative to ship center of mass GameManager controls the player ship's thrusters Player can dock with station if they are near
This commit is contained in:
parent
e3f3bd5de5
commit
c4be204cd0
172 changed files with 6753 additions and 779 deletions
11
Assets/UnityHelpers.cs
Normal file
11
Assets/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