// copy properties from key public override void CopyTo(AMKey key) { AMGOSetActiveKey a = key as AMGOSetActiveKey; a.enabled = false; a.frame = frame; a.setActive = setActive; }
public AMActionFieldSet(AMKey key, int frameRate, object target, FieldInfo f, object val) : base(key, frameRate) { mObj = target; mField = f; mVal = val; }
public static void setValues(AMKey _key, AMTrack _track) { justSet = true; key = _key; track = _track; //aData = _aData; selectedIndex = key.easeType; }
// copy properties from key public override void CopyTo(AMKey key) { AMAudioKey a = key as AMAudioKey; a.enabled = false; a.frame = frame; a.audioClip = audioClip; a.loop = loop; a.oneShot = oneShot; }
// copy properties from key public override void CopyTo(AMKey key) { AMRotationEulerKey a = key as AMRotationEulerKey; a.enabled = false; a.frame = frame; a.rotation = rotation; a.easeType = easeType; a.customEase = new List<float>(customEase); }
// copy properties from key public override void CopyTo(AMKey key) { AMAnimationKey a = key as AMAnimationKey; a.enabled = false; a.frame = frame; a.wrapMode = wrapMode; a.amClip = amClip; a.crossfade = crossfade; }
// copy properties from key public override void CopyTo(AMKey key) { AMTriggerKey a = key as AMTriggerKey; a.enabled = false; a.frame = frame; a.valueString = valueString; a.valueInt = valueInt; a.valueFloat = valueFloat; }
public override void CopyTo(AMKey key) { AMOrientationKey a = key as AMOrientationKey; a.enabled = false; a.frame = frame; a.target = target; a.targetPath = targetPath; a.easeType = easeType; a.customEase = new List<float>(customEase); }
public override void CopyTo(AMKey key) { AMCameraSwitcherKey a = key as AMCameraSwitcherKey; a.type = type; a._camera = _camera; a._cameraPath = _cameraPath; a.color = color; a.cameraFadeType = cameraFadeType; a.cameraFadeParameters = new List<float>(cameraFadeParameters); a.irisShape = irisShape; a.still = still; }
/*public bool setParameters(object[] parameters) { if(this.parameters != parameters) { this.parameters = parameters; return true; } return false; }*/ // copy properties from key public override void CopyTo(AMKey key) { AMEventKey a = key as AMEventKey; a.enabled = false; a.frame = frame; a.component = component; a.componentName = componentName; a.useSendMessage = useSendMessage; // parameters a.methodName = methodName; a.cachedMethodInfo = cachedMethodInfo; foreach(AMEventParameter e in parameters) { a.parameters.Add(e.CreateClone()); } }
public AMActionTransLocalRot(AMKey key, int frameRate, Transform target, Quaternion rot) : base(key, frameRate) { mTrans = target; mRot = rot; }
public AMActionSpriteSet(AMKey key, int frameRate, SpriteRenderer target, Sprite spr) : base(key, frameRate) { mSpriteRender = target; mSprite = spr; }
public AMActionTransLocalPos(AMKey key, int frameRate, Transform target, Vector3 pos) : base(key, frameRate) { mTrans = target; mPos = pos; }
public AMActionMaterialVectorSet(AMKey key, int frameRate, Material mat, string prop, Vector4 val) : base(key, frameRate, mat, prop) { mVal = val; }
public AMActionPropertySet(AMKey key, int frameRate, object target, PropertyInfo prop, object val) : base(key, frameRate) { mObj = target; mProp = prop; mVal = val; }
public AMActionTransLocalRotEulerZ(AMKey key, int frameRate, Transform target, float val) : base(key, frameRate, target, val) { }
public virtual void CopyTo(AMKey key) { Debug.LogError("Animator: No override for CopyTo()"); }
public AMActionData(AMKey key, int frameRate) { mStartTime = key.getWaitTime(frameRate, 0.0f); mEndTime = mStartTime + ((float)key.getNumberOfFrames(frameRate))/((float)frameRate); }
public AMActionMaterialTexOfsSet(AMKey key, int frameRate, Material mat, string prop, Vector2 ofs) : base(key, frameRate, mat, prop) { mOfs = ofs; }
// copy properties from key public override void CopyTo(AMKey key) { AMTranslationKey a = key as AMTranslationKey; a.enabled = false; a.frame = frame; a.position = position; a.interp = interp; a.easeType = easeType; a.customEase = new List<float>(customEase); a.isConstSpeed = isConstSpeed; }
public AMActionMaterialPropName(AMKey key, int frameRate, Material mat, string prop) : base(key, frameRate) { mMat = mat; mProp = prop; }
public AMActionMaterial(AMKey key, int frameRate, Material mat, string prop) : base(key, frameRate) { mMat = mat; mPropId = Shader.PropertyToID(prop); }
public AMActionGOActive(AMKey key, int frameRate, GameObject target, bool val) : base(key, frameRate) { mGO = target; mVal = val; }
void AMITarget.SequenceTrigger(AMSequence seq, AMKey key, AMTriggerData trigDat) { if(takeTriggerCallback != null) takeTriggerCallback(this, seq.take, key, trigDat); }
public AMActionTransLocalRotEuler(AMKey key, int frameRate, Transform target, Vector3 rot) : base(key, frameRate) { mTrans = target; mRot = rot; }
public AMActionMaterialTexScaleSet(AMKey key, int frameRate, Material mat, string prop, Vector2 s) : base(key, frameRate, mat, prop) { mScale = s; }
public AMActionTransLocalRotEulerVal(AMKey key, int frameRate, Transform target, float val) : base(key, frameRate) { mTrans = target; mVal = val; }
public AMActionMaterialTexSet(AMKey key, int frameRate, Material mat, string prop, Texture tex) : base(key, frameRate, mat, prop) { mTex = tex; }
public AMActionMaterialFloatSet(AMKey key, int frameRate, Material mat, string prop, float val) : base(key, frameRate, mat, prop) { mVal = val; }
public override void CopyTo(AMKey key) { AMMaterialKey a = key as AMMaterialKey; a.enabled = false; a.frame = frame; a.texture = texture; a._val4 = _val4; a.easeType = easeType; a.customEase = new List<float>(customEase); }