Example #1
0
 public void Attack(Dinosaur targetDinosaur)
 {
     TargetDinosaur = targetDinosaur;
     TargetDinosaur.DefendFrom(this);
     InBattle           = true;
     _sequenceCoroutine = StartCoroutine(StartAttackSequence());
 }
Example #2
0
 /* When two dinosaurs are tracked, the attack sequence is started. */
 public void Attack(Dinosaur targetDinosaur)
 {
     TargetDinosaur = targetDinosaur;
     /* The target dinosaur will start its defense sequence. */
     TargetDinosaur.DefendFrom(this);
     InBattle           = true;
     _sequenceCoroutine = StartCoroutine(StartAttackSequence());
 }