This can be seen as the initial state of the project after the released demo.
The changes include:
- New ship models
- Singleton manager structure to keep project scaleable in the future
- Managing players, their settings, character choices, statistics, match setups, controls etc. in a separate decoupled scene
- Main menu with transitions to the arena scene
- Beginnings of a custom audio solution
- Logging with Log4Net
It is really a complete overhaul of the projects structure and management.
20 lines
434 B
C#
20 lines
434 B
C#
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
/// <summary>
|
|
/// Defines a players unique identifiers, the controls he uses
|
|
/// and which ship he steers.
|
|
/// </summary>
|
|
public class Player : ScriptableObject
|
|
{
|
|
public GUID PlayerID { get; private set; }
|
|
public int playerNumber;
|
|
public string playerName = "default";
|
|
public ShipProperties character;
|
|
public GameObject spawnedCharacter;
|
|
|
|
void Awake()
|
|
{
|
|
PlayerID = GUID.Generate();
|
|
}
|
|
} |