Exemplo n.º 1
0
	    static void DrawGizmos(AnimatorData aData, GizmoType gizmoType) {
	        //check if it's the one opened
	        if(AMTimeline.window != null && AMTimeline.window.aData != null && AMTimeline.window.aData.IsDataMatch(aData)) {
	            AnimatorDataEdit eData = AMTimeline.AnimEdit(aData);

	            List<AMTakeData> _t = eData.takes;

	            if(_t == null || _t.Count == 0) return;
	            if(eData.currentTakeInd < 0) {
	                eData.currentTakeInd = 0;
	            }
	            else if(eData.currentTakeInd >= _t.Count)
	                eData.currentTakeInd = _t.Count - 1;

	            _t[eData.currentTakeInd].drawGizmos(eData.target, AnimatorTimeline.e_gizmoSize, Application.isPlaying);
	        }
	    }
Exemplo n.º 2
0
	    public void SetData(AnimatorData aData) {
	        if(mData != aData) {
	            mData = aData;
	            mDataTarget = aData as AMITarget;
	            mMetaHolder = aData as AMIMeta;

	            mCurrentTakeInd = mPrevTakeInd = 0;
	        }
	    }
Exemplo n.º 3
0
	    public bool IsDataMatch(AnimatorData aData) {
	        return aData == mData;
	    }
Exemplo n.º 4
0
	    public AnimatorDataEdit(AnimatorData aData) {
	        SetData(aData);
	    }