Example #1
0
        //---------------------------------------------------
        // CreateActionDataHash
        //---------------------------------------------------
        public static byte[] CreateEffectDataHash(EffectData data)
        {
            string src = "";

            for (int i = 0; i < data.GetLength(); i++)
            {
                src += data.GetData(i).Type.ToString();
                src += data.GetData(i).PrefabPath.ToString();
            }

            byte[] tempByte = ASCIIEncoding.ASCII.GetBytes(src);
            byte[] hash     = new MD5CryptoServiceProvider().ComputeHash(tempByte);
            return(hash);
        }
Example #2
0
        //---------------------------------------------------
        // ChangedSceneStart
        //---------------------------------------------------
        void EffectPreload()
        {
            EffectData list = ApplicationManager.Instance.Master.EffectData;

            for (int i = 0; i < list.GetLength(); i++)
            {
                ApplicationManager.Instance.EffectManager.PreLoad(list.GetData(i).PrefabPath);
            }
        }