public static PersistanceConfigurationGameObject Get() { if (Instance == null) { Instance = FindObjectOfType <PersistanceConfigurationGameObject>(); } return(Instance); }
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; }