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

            return(Instance);
        }
예제 #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;
        }