Ejemplo n.º 1
0
    void OnEnable()
    {
        window       = this;
        this.title   = "Options";
        this.minSize = new Vector2(545f, 365f);
        this.maxSize = new Vector2(1000f, this.minSize.y);

        loadAnimatorData();
        oData = AMOptionsFile.loadFile();
        // setup skin popup
        skinIndex = 0;
        for (int i = 1; i < skin_ids.Length; i++)
        {
            if (skin_ids[i] == oData.skin)
            {
                skinIndex = i;
                break;
            }
        }

        if (aData)
        {
            exportTakeIndex = aData.getTakeIndex(aData.getCurrentTake());
        }
    }
Ejemplo n.º 2
0
    void loadAnimatorData()
    {
        GameObject go = GameObject.Find("AnimatorData");

        if (go)
        {
            aData = (AnimatorData)go.GetComponent("AnimatorData");
            if (aData)
            {
                if (aData.playOnStart != null)
                {
                    playOnStartIndex = aData.getTakeIndex(aData.playOnStart) + 1;
                }
                exportTakeIndex = aData.getTakeIndex(aData.getCurrentTake());
            }
        }
    }
Ejemplo n.º 3
0
    void loadAnimatorData()
    {
        aData = AMTimeline.GetAnimatorData();
        if (aData)
        {
            if (aData.playOnStart != null)
            {
                playOnStartIndex = aData.getTakeIndex(aData.playOnStart) + 1;
            }
            exportTakeIndex = aData.getTakeIndex(aData.getCurrentTake());
        }

        //GameObject go = GameObject.Find ("AnimatorData");
        //if(go) {
        //    aData = (AnimatorData) go.GetComponent<AnimatorData>();
        //    if(aData) {
        //        if(aData.playOnStart != null) playOnStartIndex = aData.getTakeIndex(aData.playOnStart) + 1;
        //        exportTakeIndex = aData.getTakeIndex(aData.getCurrentTake());
        //    }
        //}
    }
Ejemplo n.º 4
0
 void loadAnimatorData()
 {
     GameObject go = GameObject.Find ("AnimatorData");
     if(go) {
         aData = (AnimatorData) go.GetComponent ("AnimatorData");
         if(aData) {
             if(aData.playOnStart != null) playOnStartIndex = aData.getTakeIndex(aData.playOnStart) + 1;
             exportTakeIndex = aData.getTakeIndex(aData.getCurrentTake());
         }
     }
 }
Ejemplo n.º 5
0
 void loadAnimatorData()
 {
     if(AMTimeline.window != null) {
         __aData = AMTimeline.window.aData;
         if(__aData) {
             if(__aData.playOnStart != null) playOnStartIndex = __aData.getTakeIndex(__aData.playOnStart) + 1;
             exportTakeIndex = __aData.getTakeIndex(__aData.getCurrentTake());
         }
     }
 }