using System.Collections; using System.Collections.Generic; using UnityEngine; public class AppManager : MonoBehaviour { //WorldReference public static AppManager WorldReference; //Connections [Header("Connections")] public GameObject StartScreen; public Processing Processing; public MainMenu MainMenu; public GameObject[] DisableAtStart; //Prefabs //[Header("Prefabs")] //Attributes //[Header("Attributes")] //Stats //[Header("Stats")] protected bool IsAwoken = false; //Getter //Delegates //------------------------------------------------------------------------------------------------------------------ //awake protected void Awake() { //Already Awoken? if (!IsAwoken) { IsAwoken = true; WorldReference = this; //Set ScreenSize Screen.SetResolution(1600, 900, false); for (int i = 0; i < DisableAtStart.Length; i++) { //DisableAtStart[i].SetActive(false); } } } //------------------------------------------------------------------------------------------------------------------ //start protected void Start() { //MainMenu.StartStop(true); } //------------------------------------------------------------------------------------------------------------------ //setup public void SetUp() { } //------------------------------------------------------------------------------------------------------------------ //destroy //*********************************************************************************************************************** //update //*********************************************************************************************************************** //refresh //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //*********************************************************************************************************************** //events public void OnFileSelectionDone() { //Processing.OpenClose(true); } //------------------------------------------------------------------------------------------------------------------ public void OnProcessingComplete() { Processing.OpenClose(false); StartScreen.SetActive(true); } //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //*********************************************************************************************************************** //private, protected //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //*********************************************************************************************************************** //internal //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //*********************************************************************************************************************** //public static //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //*********************************************************************************************************************** //public //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //*********************************************************************************************************************** //getter, setter //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ }