コード例 #1
0
    public string GetDefault(string key, ConfigCollector cfgColl = null)
    {
        TextAsset textAsset = Resources.Load(baseDir + "/" + key) as TextAsset;

        if (textAsset == null)
        {
            return(null);
        }
        if (!MessageSigner.Verify(textAsset.text))
        {
            throw new SystemException("Tampered content for: " + key);
        }
        return(MessageSigner.Content(textAsset.text));
    }