Esempio n. 1
0
 public bool hasSamePropertyAs(AMITarget target, AMPropertyTrack _track)
 {
     if(_track.GetTarget(target) == GetTarget(target) && _track.GetTargetComp(target) == GetTargetComp(target) && _track.getTrackType() == getTrackType())
         return true;
     return false;
 }
Esempio n. 2
0
 void OnDisable()
 {
     window = null;
     track = null;
 }
Esempio n. 3
0
        AMActionData GenerateActionData(AMPropertyTrack propTrack, int frameRate, Component comp, object obj)
        {
            propTrack.RefreshData(comp);

            PropertyInfo propInfo = propTrack.GetCachedPropertyInfo();
            if(propInfo != null)
                return new AMActionPropertySet(this, frameRate, comp, propInfo, obj);
            else {
                FieldInfo fieldInfo = propTrack.GetCachedFieldInfo();
                if(fieldInfo != null)
                    return new AMActionFieldSet(this, frameRate, comp, fieldInfo, obj);
            }
            return null;
        }
Esempio n. 4
0
 public static void setValues(AMPropertyTrack _track)
 {
     track = _track;
 }