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