public DefenseAnimation(PawnModelComponent targetUnit, MasterSound masterSound) : base(targetUnit) { _masterSound = masterSound; foreach (Transform childTransform in targetUnit.transform) { if (childTransform.name.Equals("UnitSprite")) //todo TL3 { _renderer = (childTransform.GetComponent <SpriteRenderer>()); } } _startTime = Time.time; }
public ProjectileConstantSpeedMotionAnimation(PawnModelComponent targetUnit, MyHexPosition startPosition, MyHexPosition targetPosition) : base(targetUnit) { _startPosition = startPosition; _targetPosition = targetPosition; _startTime = Time.time; }
public PerpetualSpinningAnimation(PawnModelComponent animationTarget) { _animationTarget = animationTarget; }
protected MyAnimation(PawnModelComponent animationTarget) { _animationTarget = animationTarget; }
public UnitMotionAnimation(PawnModelComponent targetUnit, Vector3 startPosition, Vector3 targetPosition) : base(targetUnit) { _targetPosition = targetPosition; _startPosition = startPosition; _startPosition = targetUnit.PawnModel.Position.GetPosition(); }