コード例 #1
0
    public SPlayDesc(AnimationClip _clip, float _blendinTime, float _blendoutTime, bool _blendOutAfterEnd)
    {
        blendinTime      = _blendinTime;
        blendoutTime     = _blendoutTime;
        blendOutAfterEnd = _blendOutAfterEnd;
        clip             = _clip;

        WrapMode = eWRAP_MODE.ONCE;
    }
コード例 #2
0
    public SPlayDesc(AnimationClip _clip, float _blendinTime, SPlayDesc.eWRAP_MODE wrap)
    {
        blendinTime      = _blendinTime;
        blendoutTime     = 0;
        blendOutAfterEnd = false;
        clip             = _clip;

        WrapMode = wrap;
        if (wrap == SPlayDesc.eWRAP_MODE.AUTO)
        {
            WrapMode = _clip.isLooping ? SPlayDesc.eWRAP_MODE.LOOP : SPlayDesc.eWRAP_MODE.ONCE;
        }
    }