// Copyright | Raumgleiter AG | 2019 | All Rights Reserved //*********************************************************************************************************************** //Headers using System.Collections; using System.Collections.Generic; using UnityEngine; //*********************************************************************************************************************** namespace Raumgleiter.ZHAW.XR { public class XrMode : MonoBehaviour { //Singleton Pattern private static XrMode _inst; public static XrMode Instance { get { if (!_inst) _inst = UnityEngine.Object.FindObjectOfType(); if (!_inst) _inst = new GameObject(typeof(XrMode).ToString()).AddComponent(); return _inst; } } public static bool GetHasInstance() { return _inst != null; } //------------------------------------------------------------------------------------------------------------------ //Connections //[Header("Connections")] public Character_Xr Character; //Resources //[Header("Resources")] //Attributes //[Header("Attributes")] //Stats //[Header("Stats")] //protected bool IsSetUp = false; //Getter //Delegates //------------------------------------------------------------------------------------------------------------------ //awake //------------------------------------------------------------------------------------------------------------------ //start private void Start() { Character.UnPossess(true); } //------------------------------------------------------------------------------------------------------------------ //setup //public void SetUp() //{ // IsSetUp = true; //} //------------------------------------------------------------------------------------------------------------------ //destroy //*********************************************************************************************************************** //update //*********************************************************************************************************************** //refresh //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //*********************************************************************************************************************** //events //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //*********************************************************************************************************************** //private //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //*********************************************************************************************************************** //protected //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //*********************************************************************************************************************** //internal //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //*********************************************************************************************************************** //public //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //*********************************************************************************************************************** //public static //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ //*********************************************************************************************************************** //getter, setter //------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------ } }