Exemplo n.º 1
0
 // copy properties from key
 public override void CopyTo(AMKey key)
 {
     AMGOSetActiveKey a = key as AMGOSetActiveKey;
     a.enabled = false;
     a.frame = frame;
     a.setActive = setActive;
 }
Exemplo n.º 2
0
 public AMActionFieldSet(AMKey key, int frameRate, object target, FieldInfo f, object val)
     : base(key, frameRate)
 {
     mObj = target;
     mField = f;
     mVal = val;
 }
Exemplo n.º 3
0
 public static void setValues(AMKey _key, AMTrack _track)
 {
     justSet = true;
     key = _key;
     track = _track;
     //aData = _aData;
     selectedIndex = key.easeType;
 }
Exemplo n.º 4
0
 // 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;
 }
Exemplo n.º 5
0
 // 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);
 }
Exemplo n.º 6
0
 // 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;
 }
Exemplo n.º 7
0
 // 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;
 }
Exemplo n.º 8
0
 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);
 }
Exemplo n.º 9
0
 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;
 }
Exemplo n.º 10
0
 /*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());
     }
 }
Exemplo n.º 11
0
 public AMActionTransLocalRot(AMKey key, int frameRate, Transform target, Quaternion rot)
     : base(key, frameRate)
 {
     mTrans = target;
     mRot = rot;
 }
Exemplo n.º 12
0
 public AMActionSpriteSet(AMKey key, int frameRate, SpriteRenderer target, Sprite spr)
     : base(key, frameRate)
 {
     mSpriteRender = target;
     mSprite = spr;
 }
Exemplo n.º 13
0
 public AMActionTransLocalPos(AMKey key, int frameRate, Transform target, Vector3 pos)
     : base(key, frameRate)
 {
     mTrans = target;
     mPos = pos;
 }
Exemplo n.º 14
0
 public AMActionMaterialVectorSet(AMKey key, int frameRate, Material mat, string prop, Vector4 val)
     : base(key, frameRate, mat, prop)
 {
     mVal = val;
 }
Exemplo n.º 15
0
 public AMActionPropertySet(AMKey key, int frameRate, object target, PropertyInfo prop, object val)
     : base(key, frameRate)
 {
     mObj = target;
     mProp = prop;
     mVal = val;
 }
Exemplo n.º 16
0
 public AMActionTransLocalRotEulerZ(AMKey key, int frameRate, Transform target, float val)
     : base(key, frameRate, target, val)
 {
 }
Exemplo n.º 17
0
 public virtual void CopyTo(AMKey key)
 {
     Debug.LogError("Animator: No override for CopyTo()");
 }
Exemplo n.º 18
0
 public AMActionData(AMKey key, int frameRate)
 {
     mStartTime = key.getWaitTime(frameRate, 0.0f);
     mEndTime = mStartTime + ((float)key.getNumberOfFrames(frameRate))/((float)frameRate);
 }
Exemplo n.º 19
0
 public AMActionMaterialTexOfsSet(AMKey key, int frameRate, Material mat, string prop, Vector2 ofs)
     : base(key, frameRate, mat, prop)
 {
     mOfs = ofs;
 }
Exemplo n.º 20
0
 // 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;
 }
Exemplo n.º 21
0
 public AMActionMaterialPropName(AMKey key, int frameRate, Material mat, string prop)
     : base(key, frameRate)
 {
     mMat = mat;
     mProp = prop;
 }
Exemplo n.º 22
0
 public AMActionMaterial(AMKey key, int frameRate, Material mat, string prop)
     : base(key, frameRate)
 {
     mMat = mat;
     mPropId = Shader.PropertyToID(prop);
 }
Exemplo n.º 23
0
 public AMActionGOActive(AMKey key, int frameRate, GameObject target, bool val)
     : base(key, frameRate)
 {
     mGO = target;
     mVal = val;
 }
Exemplo n.º 24
0
 void AMITarget.SequenceTrigger(AMSequence seq, AMKey key, AMTriggerData trigDat)
 {
     if(takeTriggerCallback != null)
         takeTriggerCallback(this, seq.take, key, trigDat);
 }
Exemplo n.º 25
0
 public AMActionTransLocalRotEuler(AMKey key, int frameRate, Transform target, Vector3 rot)
     : base(key, frameRate)
 {
     mTrans = target;
     mRot = rot;
 }
Exemplo n.º 26
0
 public AMActionMaterialTexScaleSet(AMKey key, int frameRate, Material mat, string prop, Vector2 s)
     : base(key, frameRate, mat, prop)
 {
     mScale = s;
 }
Exemplo n.º 27
0
 public AMActionTransLocalRotEulerVal(AMKey key, int frameRate, Transform target, float val)
     : base(key, frameRate)
 {
     mTrans = target;
     mVal = val;
 }
Exemplo n.º 28
0
 public AMActionMaterialTexSet(AMKey key, int frameRate, Material mat, string prop, Texture tex)
     : base(key, frameRate, mat, prop)
 {
     mTex = tex;
 }
Exemplo n.º 29
0
 public AMActionMaterialFloatSet(AMKey key, int frameRate, Material mat, string prop, float val)
     : base(key, frameRate, mat, prop)
 {
     mVal = val;
 }
Exemplo n.º 30
0
        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);
        }