public void Attack(Dinosaur targetDinosaur) { TargetDinosaur = targetDinosaur; TargetDinosaur.DefendFrom(this); InBattle = true; _sequenceCoroutine = StartCoroutine(StartAttackSequence()); }
/* 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()); }