Esempio n. 1
0
    //Set Animation
    void SaveTheAnimPoint(int index, int form)
    {
        showIconEffectIcon = Conversion.AnimationConversion(index, form);
        //showIconEffectIcon include the point will animation
        Dictionary <int, GameObject> Icons = object15;

        for (int i = 0; i < showIconEffectIcon.Length; i++)
        {
            foreach (KeyValuePair <int, GameObject> kp in Icons)
            {
                try
                {
                    if (showIconEffectIcon [i] == kp.Key)
                    {
                        kp.Value.GetComponent <EffectManager>().OpenEffect();
                    }
                } catch (MissingReferenceException me)
                {
                    Debug.LogWarning(me);
                }
            }
        }
    }