Esempio n. 1
0
 /// <summary>Used for scale and movement animations</summary>
 public Animation(int animationID, int dependencyID, RectTransform transform, float speed, Messages.AnimationMessage.AnimationMessageTypes type, Vector3 target)
 {
     this.animationID   = animationID;
     this.dependencyID  = dependencyID;
     this.transform     = transform;
     this.speed         = speed;
     this.animationType = type;
     this.target        = target;
 }
Esempio n. 2
0
 /// <summary>Used for scroll and pop-up messages animations</summary>
 public Animation(int animationID, int dependencyID, Messages.AnimationMessage.AnimationMessageTypes type, RectTransform imageComponentTransform, string text, Sprite target)
 {
     this.animationID   = animationID;
     this.dependencyID  = dependencyID;
     this.speed         = 10000000;
     this.transform     = imageComponentTransform;
     this.animationType = type;
     this.targetSprite  = target;
     this.text          = text;
 }
Esempio n. 3
0
 /// <summary>Used for change sprite and color animations</summary>
 public Animation(int animationID, int dependencyID, Messages.AnimationMessage.AnimationMessageTypes type, RectTransform imageComponentTransform, Sprite target, Color color)
 {
     this.animationID   = animationID;
     this.dependencyID  = dependencyID;
     this.transform     = imageComponentTransform;
     this.speed         = 10000000;
     this.animationType = type;
     this.targetSprite  = target;
     targetColor        = color;
 }