Exemple #1
0
        public static PersistanceConfigurationGameObject Get()
        {
            if (Instance == null)
            {
                Instance = FindObjectOfType <PersistanceConfigurationGameObject>();
            }

            return(Instance);
        }
Exemple #2
0
        private AutoSaveIcon()
        {
            if (this.AutoSaveIconGameObject == null)
            {
                this.AutoSaveIconGameObject = MonoBehaviour.Instantiate(PersistanceConfigurationGameObject.Get().PersistanceConfiguration.AutoSaveIconPrefab, CoreGameSingletonInstances.PersistantCanvas().transform);
            }

            this.autoSaveIcon         = this.AutoSaveIconGameObject.GetComponent <Image>();
            this.autoSaveIcon.enabled = false;
        }