public override void Update(int deltaTime) { LogicUnit target = owner.target; // Check target if (target != null) { if (!target.Alive()) { owner.target = null; owner.targetId = 0; target = null; } else { // Target Alive } } if (target != null) { owner.Attack(target); } else { owner.FindOpponent(); } }