Beispiel #1
0
 void OnDestroy()
 {
     if (Instance == this)
     {
         Instance = null;
     }
 }
Beispiel #2
0
        void Awake()
        {
            messageAreaMap = new Dictionary <string, UIMessageArea>();
            messageMap     = new Dictionary <Message, bool>();

            messagesToRemove = new List <Message>();

            lastUpdatedTextMap = new Dictionary <Text, bool>();


            SceneManager.sceneLoaded += OnScenelWasLoaded;

            Instance = this;
        }