Ejemplo n.º 1
0
    //outInExpo,
    //inBack,
    //outBack,
    //inOutBack,
    //outInBack,

    #endregion

    #region Debug


    public void ShowDebug()
    {
        AnimData data = new AnimData();

        Type type = data.GetType();

        System.Reflection.FieldInfo[] infos = type.GetFields();

        for (int i = 0; i < infos.Length; i++)
        {
            if (
                (infos[i].GetValue(this) == null && infos[i].GetValue(data) != null) ||
                (infos[i].GetValue(this) != null && infos[i].GetValue(data) == null) ||
                (infos[i].GetValue(this) != null && !infos[i].GetValue(this).Equals(infos[i].GetValue(data)))
                )
            {
                Debug.Log(" " + infos[i].Name + " is not equal ! this value : " + infos[i].GetValue(this) + " data Value :" + infos[i].GetValue(data));
            }
        }
    }