Space-Smash-Out/Assets/Scripts/ScriptableObjects/Player.cs
Jakob Feldmann 6d89d9d48e fix: introduced assetbundles, instead of reading from folder
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)
2024-04-18 20:23:17 +02:00

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;
}