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.
17 lines
472 B
C#
17 lines
472 B
C#
#if PRIME_TWEEN_INSTALLED
|
|
using UnityEngine;
|
|
|
|
namespace PrimeTweenDemo {
|
|
public class HighlightableElement : MonoBehaviour {
|
|
[SerializeField] public Transform highlightAnchor;
|
|
public MeshRenderer[] models { get; private set; }
|
|
|
|
void OnEnable() {
|
|
models = GetComponentsInChildren<MeshRenderer>();
|
|
foreach (var mr in models) {
|
|
_ = mr.material; // copy shared material
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif |