Ashby Issac fbeac39eb3 Gameplay system changes.
completed prototyping.
Integrated abstraction layer from previous project.
Refactored gameplay code.
Found an issue with drifting and added a quick fix for the same.
Added camera system for chasing player movement.
2026-01-05 19:59:43 +05:30

34 lines
878 B
C#

using System.Collections.Generic;
using UnityEngine;
public abstract class BootLoader : MonoBehaviour
{
[Tooltip("For keeping track of all ui related objects: screens and popups")]
[SerializeField] private GameObject[] uiBases;
protected virtual void Start()
{
InterfaceManager.InitInstance();
InitBootLoaders();
InitializeUIBases();
InitializeData();
}
private void InitializeUIBases()
{
if (uiBases != null && uiBases.Length > 0)
foreach (GameObject uiBase in uiBases)
uiBase.GetComponent<IUIBase>().Initialize();
}
protected abstract void InitBootLoaders();
protected abstract void InitializeData();
protected bool GetLoader<T>(Transform loader, out T outLoader)
{
outLoader = loader.GetComponent<T>();
return outLoader != null;
}
}