Beispiel #1
0
 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;
 }
Beispiel #4
0
 protected MyAnimation(PawnModelComponent animationTarget)
 {
     _animationTarget = animationTarget;
 }
Beispiel #5
0
 public UnitMotionAnimation(PawnModelComponent targetUnit, Vector3 startPosition, Vector3 targetPosition) : base(targetUnit)
 {
     _targetPosition = targetPosition;
     _startPosition  = startPosition;
     _startPosition  = targetUnit.PawnModel.Position.GetPosition();
 }