static Sound() { _audioVolume = 1f; _musicVolume = 1f; _environmentVolume = 1f; _uiVolume = 1f; GlobalMusicVolume = 1f; GlobalAudioVolume = 1f; _soundTableT = TableUtility.GetTable <SoundDeploy>(); }
public static TableT <T> GetTable <T>() where T : Conditionable { TableT <T> table = null; var className = typeof(T); if (Paths.ContainsKey(className)) { table = TableDatabase.Load <T>(Paths[className]); if (table == null) { Debug.LogError("can not open " + Paths[className] + " table"); return(default(TableT <T>)); } } if (table == null) { Debug.LogError(string.Format("table {0} not init url", className)); } return(table); }
static BulletFactory() { CachePool = new Dictionary<int, Holder>(); BulletTab = TableUtility.GetTable<BulletDeploy>(); }
static TextureEffectFactroy() { CachePool = new Dictionary <int, Holder>(); EffectTab = TableUtility.GetTable <TextureEffectDeploy>(); }