Reading Assets from folders was only possible in Editor over LoadAssetFromPath. Now I'm using asset bundles for ScriptedObjects and Audio Prefabs, when the project is built. When in Editor the folders are still used for convenience (can make changes to assets without rebuilding asset bundles)
13 lines
320 B
C#
13 lines
320 B
C#
using UnityEngine;
|
|
|
|
/// <summary>
|
|
/// Defines a players unique identifiers, the controls he uses
|
|
/// and which ship he steers.
|
|
/// </summary>
|
|
public class Player : ScriptableObject
|
|
{
|
|
public int playerNumber;
|
|
public string playerName = "default";
|
|
public ShipProperties character;
|
|
public GameObject spawnedCharacter;
|
|
} |