/// <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; }
/// <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; }
/// <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; }