Beispiel #1
0
    void OnEnable()
    {
        window              = this;
        this.maxSize        = new Vector2(715f, 398f);
        this.minSize        = this.maxSize;
        this.wantsMouseMove = true;
        loadAnimatorData();
        oData = AMOptionsFile.loadFile();
        setupFilteredCategories();
        selectedIndex = getCategoryIndexForEase(key.easeType);
        if (selectedIndex < 0)
        {
            selectedIndex = key.easeType;
            category      = 0;
        }

        if (getSelectedEaseName(category, selectedIndex) == "Custom")
        {
            isCustomEase = true;
        }
        if (isCustomEase && key.customEase.Count > 0)
        {
            curve = key.getCustomEaseCurve();
        }
        else
        {
            setEasingCurve();
        }
    }
Beispiel #2
0
    void OnEnable()
    {
        //curves[0] = new AnimationCurve(new Keyframe(0, 0), new Keyframe(1, 1));
        //curves[1] = new AnimationCurve(new Keyframe(0, 1), new Keyframe(1, 0));
        //curves[2] = new AnimationCurve(new Keyframe(0, 0.5f), new Keyframe(1, 0.5f));

        window = this;

        tex_orb = (Texture)Resources.Load("am_orb");

        this.maxSize        = new Vector2(715f, 398f);
        this.minSize        = this.maxSize;
        this.wantsMouseMove = true;
        loadAnimatorData();
        oData = AMOptionsFile.loadFile();
        setupFilteredCategories();
        selectedIndex = getCategoryIndexForEase(key.easeType);
        if (selectedIndex < 0)
        {
            selectedIndex = key.easeType;
            category      = 0;
        }

        if (getSelectedEaseName(category, selectedIndex) == "Custom")
        {
            isCustomEase = true;
        }
        if (isCustomEase && key.customEase.Count > 0)
        {
            curve = key.getCustomEaseCurve();
        }
        else
        {
            setEasingCurve();
        }
    }